We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cc9e44 commit 396e100Copy full SHA for 396e100
ruzstd/src/decoding/literals_section_decoder.rs
@@ -58,11 +58,10 @@ fn decompress_literals(
58
bytes_read += scratch.table.build_decoder(source)?;
59
vprintln!("Built huffman table using {} bytes", bytes_read);
60
}
61
- LiteralsSectionType::Treeless => {
62
- if scratch.table.max_num_bits == 0 {
63
- return Err(err::UninitializedHuffmanTable);
64
- }
+ LiteralsSectionType::Treeless if scratch.table.max_num_bits == 0 => {
+ return Err(err::UninitializedHuffmanTable);
65
+
66
_ => { /* nothing to do, huffman tree has been provided by previous block */ }
67
68
0 commit comments