We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87ebdc5 commit 7e22cb4Copy full SHA for 7e22cb4
src/general/huffman_encoding.rs
@@ -272,7 +272,7 @@ mod tests {
272
// Create a minimal but VALID HuffmanDictionary.
273
// This is required because decode() expects a dictionary, even though
274
// the content of the dictionary doesn't matter when num_bits == 0.
275
- let freq = vec![('a' as u8, 1)];
+ let freq = vec![(b'a' as u8, 1)];
276
let dict = HuffmanDictionary::new(&freq).unwrap();
277
278
// Manually create the target state: an encoding with 0 bits.
0 commit comments