mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 08:41:34 +11:00
satisfy linter
This commit is contained in:
parent
e462d35feb
commit
3cc30a2bcd
|
@ -151,12 +151,12 @@ impl Palette16Optimiser {
|
||||||
let mut a_colour_is_used = false;
|
let mut a_colour_is_used = false;
|
||||||
|
|
||||||
for current_palette in unsatisfied_palettes {
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
for colour in ¤t_palette.colours {
|
for colour in ¤t_palette.colours {
|
||||||
if palette.colours.contains(&colour) {
|
if palette.colours.contains(colour) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue