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 64d6bce
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 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,7 +147,8 @@ where
Box::new(IpcSink::new(path, *options, input_schema.as_ref())?)
as Box<dyn SinkTrait>
}
_ => unreachable!(),
#[allow(unreachable_patterns)]
_ => unreachable!()
}
}
#[cfg(feature = "cloud")]
Expand All @@ -169,11 +170,12 @@ 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");
}
_ => unreachable!(),
#[allow(unreachable_patterns)]
_ => unreachable!()
}
}
}
Expand Down

0 comments on commit 64d6bce

Please sign in to comment.