Skip to content

Commit

Permalink
fix some warning (#2927)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Mar 18, 2022
1 parent 6b26890 commit 331aa0d
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions polars/polars-io/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,9 @@ pub(crate) mod utils;

pub use options::*;

#[cfg(any(
feature = "ipc",
feature = "parquet",
feature = "json",
feature = "avro"
))]
#[cfg(any(feature = "ipc", feature = "json", feature = "avro"))]
use crate::aggregations::{apply_aggregations, ScanAggregation};
#[cfg(any(
feature = "ipc",
feature = "parquet",
feature = "json",
feature = "avro"
))]
#[cfg(any(feature = "ipc", feature = "json", feature = "avro"))]
use crate::predicates::PhysicalIoExpr;
#[allow(unused)] // remove when updating to rust nightly >= 1.61
use arrow::array::new_empty_array;
Expand Down Expand Up @@ -90,12 +80,7 @@ pub trait ArrowReader {
fn next_record_batch(&mut self) -> ArrowResult<Option<ArrowChunk>>;
}

#[cfg(any(
feature = "ipc",
feature = "parquet",
feature = "json",
feature = "avro"
))]
#[cfg(any(feature = "ipc", feature = "json", feature = "avro"))]
pub(crate) fn finish_reader<R: ArrowReader>(
mut reader: R,
rechunk: bool,
Expand Down

0 comments on commit 331aa0d

Please sign in to comment.