about summary refs log tree commit diff
path: root/gifprobe/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'gifprobe/src/main.rs')
-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);
 			}
 		}