about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDevon Sawatsky <novedevo@gmail.com>2023-12-31 16:11:13 -0800
committerDevon Sawatsky <novedevo@gmail.com>2023-12-31 16:11:13 -0800
commit234eeebb8b51c32e6b7ba5aa19a64bee00ba52e8 (patch)
tree9055a9389f1dc57117d128b6f24f1ecfab69f9cf
parente8acede7abe3f4bc7292053a5f6f144166a28afe (diff)
downloadgifed-234eeebb8b51c32e6b7ba5aa19a64bee00ba52e8.tar.gz
gifed-234eeebb8b51c32e6b7ba5aa19a64bee00ba52e8.zip
fix clippy warning in palette
-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.