about summary refs log tree commit diff
path: root/gifprobe/src
diff options
context:
space:
mode:
authorDevon Sawatsky <novedevo@gmail.com>2023-10-21 22:12:35 -0700
committerDevon Sawatsky <novedevo@gmail.com>2023-10-21 22:12:35 -0700
commit8eb97b076f4fb22e7420708d32e11cf03fa4f2e6 (patch)
treecffe7400ac8f04fda54f5330bd6b667798b82932 /gifprobe/src
parent593ff8fae201dce348c7f2dfdf5405b84507364f (diff)
downloadgifed-8eb97b076f4fb22e7420708d32e11cf03fa4f2e6.tar.gz
gifed-8eb97b076f4fb22e7420708d32e11cf03fa4f2e6.zip
fix clippy lints in gifprobe
Diffstat (limited to 'gifprobe/src')
-rw-r--r--gifprobe/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/gifprobe/src/main.rs b/gifprobe/src/main.rs
index 64cee94..fd6b189 100644
--- a/gifprobe/src/main.rs
+++ b/gifprobe/src/main.rs
@@ -10,7 +10,7 @@ use gifed::{
 use owo_colors::OwoColorize;
 
 fn main() {
-	let file = if let Some(file) = std::env::args().skip(1).next() {
+	let file = if let Some(file) = std::env::args().nth(1) {
 		file
 	} else {
 		println!("usage: gifprobe file.gif");
@@ -49,7 +49,7 @@ fn main() {
 		);
 
 		if colors {
-			for (idx, clr) in plt.into_iter().enumerate() {
+			for (idx, clr) in plt.iter().enumerate() {
 				println!(
 					"\t{} {}, {}, {}",
 					idx.color(owo_colors::Rgb(clr.r, clr.g, clr.b)),
@@ -217,7 +217,7 @@ fn describe_image(bli: CompressedImage, offset: Range<usize>, expand: bool, colo
 		);
 
 		if colors {
-			for (idx, clr) in plt.into_iter().enumerate() {
+			for (idx, clr) in plt.iter().enumerate() {
 				println!("\t{idx} {}, {}, {}", clr.r, clr.g, clr.b);
 			}
 		}