From 234eeebb8b51c32e6b7ba5aa19a64bee00ba52e8 Mon Sep 17 00:00:00 2001 From: Devon Sawatsky Date: Sun, 31 Dec 2023 16:11:13 -0800 Subject: fix clippy warning in palette --- gifed/src/block/palette.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gifed/src/block/palette.rs b/gifed/src/block/palette.rs index f49442f..436e698 100644 --- a/gifed/src/block/palette.rs +++ b/gifed/src/block/palette.rs @@ -52,8 +52,8 @@ impl Palette { self.table .iter() .enumerate() - .find(|(i, c)| **c == color) - .map(|(i, c)| i as u8) + .find(|(_, c)| **c == color) + .map(|(i, _)| i as u8) } /// How many padding bytes we need to write. -- cgit 1.4.1-3-g733a5