diff options
author | gennyble <gen@nyble.dev> | 2023-11-15 21:10:43 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-15 21:10:43 -0600 |
commit | 9fe0ced38710de9c9f4c36e182555ea80c8be20b (patch) | |
tree | 9bfa6080ce821166f045e0836a4b476b6c7fa827 /gifprobe/src/main.rs | |
parent | fa2943a6a4bc1d276b458fefae48b28cd78cdb9c (diff) | |
parent | ad74e0bf2721ca9086cc3e2ecacfec91c54746f2 (diff) | |
download | gifed-9fe0ced38710de9c9f4c36e182555ea80c8be20b.tar.gz gifed-9fe0ced38710de9c9f4c36e182555ea80c8be20b.zip |
Merge pull request #18 from novedevo/main
buncha clippy and devon-sourced changes
Diffstat (limited to 'gifprobe/src/main.rs')
-rw-r--r-- | gifprobe/src/main.rs | 6 |
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); } } |