Skip to content

Commit 7c63c02

Browse files
committed
Refactor: Fix clippy lints in new huffman tests
Corrects 'char-lit-as-u8' and 'unnecessary-cast' lints in the newly added coverage tests to satisfy GitHub Actions.
1 parent 7e22cb4 commit 7c63c02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/general/huffman_encoding.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ mod tests {
272272
// Create a minimal but VALID HuffmanDictionary.
273273
// This is required because decode() expects a dictionary, even though
274274
// the content of the dictionary doesn't matter when num_bits == 0.
275-
let freq = vec![(b'a' as u8, 1)];
275+
let freq = vec![(b'a', 1)];
276276
let dict = HuffmanDictionary::new(&freq).unwrap();
277277

278278
// Manually create the target state: an encoding with 0 bits.
@@ -288,7 +288,7 @@ mod tests {
288288

289289
#[test]
290290
fn minimal_decode_end_check() {
291-
let freq = vec![(b'a' as u8, 1), (b'b' as u8, 1)];
291+
let freq = vec![(b'a', 1), (b'b', 1)];
292292
let bytes = b"ab";
293293

294294
let dict = HuffmanDictionary::new(&freq).unwrap();

0 commit comments

Comments
 (0)