From d3dd5f8f002ff5536fe0e230b9ecf383220fc797 Mon Sep 17 00:00:00 2001 From: Piotr Findeisen Date: Fri, 29 Nov 2024 21:14:14 +0100 Subject: [PATCH] Fix arrow-avro compilation without default features Before the change, using arrow-avro without default features would fail to compile. This can be seen with cargo check -p arrow-avro --no-default-features --- arrow-avro/src/compression.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arrow-avro/src/compression.rs b/arrow-avro/src/compression.rs index c5c7a6dabc33..f29b8dd07606 100644 --- a/arrow-avro/src/compression.rs +++ b/arrow-avro/src/compression.rs @@ -16,7 +16,6 @@ // under the License. use arrow_schema::ArrowError; -use flate2::read; use std::io; use std::io::Read; @@ -35,7 +34,7 @@ impl CompressionCodec { match self { #[cfg(feature = "deflate")] CompressionCodec::Deflate => { - let mut decoder = read::DeflateDecoder::new(block); + let mut decoder = flate2::read::DeflateDecoder::new(block); let mut out = Vec::new(); decoder.read_to_end(&mut out)?; Ok(out)