mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
dircolors: use zip for cleaner iteration with 1-based index
This commit is contained in:
committed by
Daniel Hofstetter
parent
faf06c0e29
commit
2a8eeadf5d
@@ -364,8 +364,7 @@ where
|
||||
let mut state = ParseState::Global;
|
||||
let mut saw_colorterm_match = false;
|
||||
|
||||
for (num, line) in user_input.into_iter().enumerate() {
|
||||
let num = num + 1;
|
||||
for (num, line) in (1..).zip(user_input.into_iter()) {
|
||||
let line = line.borrow().purify();
|
||||
if line.is_empty() {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user