diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-04-28 21:37:34 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-04-28 21:37:34 +0800 |
| commit | 5bf4209bd138faf76e3bd316fdfa128a08f2bb2e (patch) | |
| tree | 8b8accd12c5831360f8c609a3c019373dc4db7d4 /mling/src/cli/read.rs | |
| parent | 94ac5ec454ef9fa687857b8d4323d0269bddb3c2 (diff) | |
Apply clippy suggestions for code simplification
Diffstat (limited to 'mling/src/cli/read.rs')
| -rw-r--r-- | mling/src/cli/read.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mling/src/cli/read.rs b/mling/src/cli/read.rs index 8717932..3bd9fc2 100644 --- a/mling/src/cli/read.rs +++ b/mling/src/cli/read.rs @@ -64,14 +64,12 @@ pub(crate) fn render_dir(prev: ResultDir) { #[renderer] pub(crate) fn render_binaries(prev: ResultBinaries) { - let mut i = 1; - for item in prev.bin.iter() { + for (i, item) in (1..).zip(prev.bin.iter()) { r_println!( "{}. {} ({})", i.to_string(), item.name.bold(), item.path.to_string_lossy().underline().bright_cyan() ); - i += 1; } } |
