From 3cc30a2bcd9a9ca5dca8f7186ea8c65bb167e85b Mon Sep 17 00:00:00 2001 From: Corwin Date: Tue, 15 Feb 2022 21:29:03 +0000 Subject: [PATCH] satisfy linter --- agb-image-converter/src/palette16.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agb-image-converter/src/palette16.rs b/agb-image-converter/src/palette16.rs index 0c7e3451..18adc83c 100644 --- a/agb-image-converter/src/palette16.rs +++ b/agb-image-converter/src/palette16.rs @@ -151,12 +151,12 @@ impl Palette16Optimiser { let mut a_colour_is_used = false; for current_palette in unsatisfied_palettes { - if palette.union_length(¤t_palette) > MAX_COLOURS_PER_PALETTE { + if palette.union_length(current_palette) > MAX_COLOURS_PER_PALETTE { continue; } for colour in ¤t_palette.colours { - if palette.colours.contains(&colour) { + if palette.colours.contains(colour) { continue; }