Skip to content

Commit 396e100

Browse files
committed
make clippy happy
1 parent 5cc9e44 commit 396e100

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ruzstd/src/decoding/literals_section_decoder.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,10 @@ fn decompress_literals(
5858
bytes_read += scratch.table.build_decoder(source)?;
5959
vprintln!("Built huffman table using {} bytes", bytes_read);
6060
}
61-
LiteralsSectionType::Treeless => {
62-
if scratch.table.max_num_bits == 0 {
63-
return Err(err::UninitializedHuffmanTable);
64-
}
61+
LiteralsSectionType::Treeless if scratch.table.max_num_bits == 0 => {
62+
return Err(err::UninitializedHuffmanTable);
6563
}
64+
6665
_ => { /* nothing to do, huffman tree has been provided by previous block */ }
6766
}
6867

0 commit comments

Comments
 (0)