Skip to content

Commit

Permalink
Making clippy happy (by silencing an feature-flag-conditional unreach…
Browse files Browse the repository at this point in the history
…able pattern)
  • Loading branch information
Qqwy committed Aug 1, 2023
1 parent c378d91 commit 121fbb0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/polars-pipe/src/pipeline/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::executors::sinks::groupby::GenericGroupby2;
use crate::executors::sinks::*;
use crate::executors::{operators, sources};
use crate::expressions::PhysicalPipedExpr;
use crate::operators::{Operator, Sink, Sink as SinkTrait, Source};
use crate::operators::{Operator, Sink as SinkTrait, Source};
use crate::pipeline::PipeLine;

fn exprs_to_physical<F>(
Expand Down Expand Up @@ -147,6 +147,7 @@ where
Box::new(IpcSink::new(path, *options, input_schema.as_ref())?)
as Box<dyn SinkTrait>
}
#[allow(unreachable_patterns)]
_ => unreachable!(),
}
}
Expand All @@ -169,10 +170,11 @@ where
)?)
as Box<dyn SinkTrait>,
#[cfg(feature = "ipc")]
FileType::Ipc(ipc_options) => {
FileType::Ipc(_ipc_options) => {
// TODO: support Ipc as well
todo!("For now, only parquet cloud files are supported");
}
#[allow(unreachable_patterns)]
_ => unreachable!(),
}
}
Expand Down

0 comments on commit 121fbb0

Please sign in to comment.