This is an automated email from the ASF dual-hosted git repository.

tustvold pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/main by this push:
     new e2a2beb20a Fix arrow-avro compilation without default features (#6819)
e2a2beb20a is described below

commit e2a2beb20a9912539886ec5eec73c33122131f7a
Author: Piotr Findeisen <[email protected]>
AuthorDate: Sat Nov 30 10:22:02 2024 +0100

    Fix arrow-avro compilation without default features (#6819)
    
    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 c5c7a6dabc..f29b8dd076 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)

Reply via email to