From 09e968c36f99b6e35a2aa3606016a336547466c8 Mon Sep 17 00:00:00 2001 From: broccoliSpicy Date: Wed, 13 Nov 2024 12:49:38 -0500 Subject: [PATCH] lint --- rust/lance-encoding/src/encodings/physical/fsst.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rust/lance-encoding/src/encodings/physical/fsst.rs b/rust/lance-encoding/src/encodings/physical/fsst.rs index 526a37b4b6..fa5e5cec9a 100644 --- a/rust/lance-encoding/src/encodings/physical/fsst.rs +++ b/rust/lance-encoding/src/encodings/physical/fsst.rs @@ -288,9 +288,8 @@ impl MiniBlockDecompressor for FsstMiniBlockDecompressor { let binary_decompressor = Box::new(BinaryMiniBlockDecompressor::default()) as Box; let compressed_data_block = binary_decompressor.decompress(data, num_values)?; - let mut compressed_data_block = match compressed_data_block { - DataBlock::VariableWidth(variable) => variable, - _ => panic!("Received non-variable width data from BinaryMiniBlockDecompressor."), + let DataBlock::VariableWidth(mut compressed_data_block) = compressed_data_block else { + panic!("BinaryMiniBlockDecompressor should output VariableWidth DataBlock") }; // Step 2. FSST decompress