From 121fbb04bc8cd6b25130556dd77f8bc538de129b Mon Sep 17 00:00:00 2001 From: qqwy Date: Tue, 1 Aug 2023 22:28:52 +0200 Subject: [PATCH] Making clippy happy (by silencing an feature-flag-conditional unreachable pattern) --- crates/polars-pipe/src/pipeline/convert.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/polars-pipe/src/pipeline/convert.rs b/crates/polars-pipe/src/pipeline/convert.rs index 20c0ef4cf747..a0ef5812f007 100644 --- a/crates/polars-pipe/src/pipeline/convert.rs +++ b/crates/polars-pipe/src/pipeline/convert.rs @@ -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( @@ -147,6 +147,7 @@ where Box::new(IpcSink::new(path, *options, input_schema.as_ref())?) as Box } + #[allow(unreachable_patterns)] _ => unreachable!(), } } @@ -169,10 +170,11 @@ where )?) as Box, #[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!(), } }