diff options
Diffstat (limited to 'mling/src/cli/list.rs')
| -rw-r--r-- | mling/src/cli/list.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mling/src/cli/list.rs b/mling/src/cli/list.rs index faf1866..a0c68a0 100644 --- a/mling/src/cli/list.rs +++ b/mling/src/cli/list.rs @@ -109,9 +109,7 @@ fn print_list(title: String, list: Vec<String>, r: &mut RenderResult) { r_println!("{}", title); - let mut i = 1; - for namespace in list.iter() { + for (i, namespace) in (1..).zip(list.iter()) { r_println!(" {}. {}", i.to_string(), namespace.bold()); - i += 1; } } |
