Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
broccoliSpicy committed Nov 13, 2024
1 parent a0ed83d commit 09e968c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rust/lance-encoding/src/encodings/physical/fsst.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,8 @@ impl MiniBlockDecompressor for FsstMiniBlockDecompressor {
let binary_decompressor =
Box::new(BinaryMiniBlockDecompressor::default()) as Box<dyn MiniBlockDecompressor>;
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
Expand Down

0 comments on commit 09e968c

Please sign in to comment.