From 7264bd9ac8d99cffd1665ee2b41877edbf0851d9 Mon Sep 17 00:00:00 2001 From: Josh Stoik Date: Sun, 7 Jul 2024 00:32:20 -0700 Subject: [PATCH] lints --- flapfli/src/zopflipng/kat.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/flapfli/src/zopflipng/kat.rs b/flapfli/src/zopflipng/kat.rs index 4514419..a7e122d 100644 --- a/flapfli/src/zopflipng/kat.rs +++ b/flapfli/src/zopflipng/kat.rs @@ -927,6 +927,7 @@ fn llcl_boundary_pm(leaves: &[Leaf<'_>], lists: &mut [List], nodes: &KatScratch) llcl_boundary_pm(leaves, rest, nodes) } +#[allow(clippy::cast_possible_truncation)] /// # Last Non-Zero, Non-Special Count. /// /// This method loops through the counts in the jumbled DEFLATE tree order, @@ -962,14 +963,6 @@ mod tests { } } - #[test] - /// # Tree Max. - /// - /// Make sure our math correctly aligns with `TreeRleIdx`. - fn t_tree_max() { - assert_eq!(TreeScratch::MAX - 1, TreeRleIdx::T315 as usize); - } - // The following tests have been adapted from the zopfli-rs crate: //