dircolors: use zip for cleaner iteration with 1-based index

This commit is contained in:
xtqqczze
2026-02-18 15:03:29 +01:00
committed by Daniel Hofstetter
parent faf06c0e29
commit 2a8eeadf5d
+1 -2
View File
@@ -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;