File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -364,8 +364,7 @@ where
364364 let mut state = ParseState :: Global ;
365365 let mut saw_colorterm_match = false ;
366366
367- for ( num, line) in user_input. into_iter ( ) . enumerate ( ) {
368- let num = num + 1 ;
367+ for ( num, line) in ( 1 ..) . zip ( user_input. into_iter ( ) ) {
369368 let line = line. borrow ( ) . purify ( ) ;
370369 if line. is_empty ( ) {
371370 continue ;
Original file line number Diff line number Diff line change @@ -1799,8 +1799,7 @@ fn emit_debug_warnings(
17991799
18001800 show_error ! ( "{}" , translate!( "sort-warning-simple-byte-comparison" ) ) ;
18011801
1802- for ( idx, selector) in settings. selectors . iter ( ) . enumerate ( ) {
1803- let key_index = idx + 1 ;
1802+ for ( key_index, selector) in ( 1 ..) . zip ( settings. selectors . iter ( ) ) {
18041803 if let Some ( legacy) = legacy_warnings
18051804 . iter ( )
18061805 . find ( |warning| warning. key_index == Some ( key_index) )
You can’t perform that action at this time.
0 commit comments