From d3dd620048be09698d44ea7171be527bf0566ceb Mon Sep 17 00:00:00 2001 From: Pascal Seitz Date: Wed, 31 Aug 2022 13:13:56 +0200 Subject: [PATCH] fix clippy --- fastfield_codecs/src/blockwise_linear.rs | 1 + fastfield_codecs/src/linear.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/fastfield_codecs/src/blockwise_linear.rs b/fastfield_codecs/src/blockwise_linear.rs index 64dde9b45..da342eb78 100644 --- a/fastfield_codecs/src/blockwise_linear.rs +++ b/fastfield_codecs/src/blockwise_linear.rs @@ -289,6 +289,7 @@ impl FastFieldCodec for BlockwiseLinearCodec { /// estimation for linear interpolation is hard because, you don't know /// where the local maxima are for the deviation of the calculated value and /// the offset is also unknown. + #[allow(clippy::question_mark)] fn estimate(fastfield_accessor: &impl Column) -> Option { if fastfield_accessor.num_vals() < 10 * CHUNK_SIZE { return None; diff --git a/fastfield_codecs/src/linear.rs b/fastfield_codecs/src/linear.rs index e3d2aac75..32dd43ec7 100644 --- a/fastfield_codecs/src/linear.rs +++ b/fastfield_codecs/src/linear.rs @@ -193,6 +193,7 @@ impl FastFieldCodec for LinearCodec { /// estimation for linear interpolation is hard because, you don't know /// where the local maxima for the deviation of the calculated value are and /// the offset to shift all values to >=0 is also unknown. + #[allow(clippy::question_mark)] fn estimate(fastfield_accessor: &impl Column) -> Option { if fastfield_accessor.num_vals() < 3 { return None; // disable compressor for this case