about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--gifed/src/block/palette.rs4
1 files 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.