Skip to content

Commit d0c1a6e

Browse files
committed
fix clippy::iter_nth_zero in tests
1 parent 28236b0 commit d0c1a6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_std.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ fn group_by() {
694694
}
695695
}
696696

697-
let toupper = |ch: &char| ch.to_uppercase().nth(0).unwrap();
697+
let toupper = |ch: &char| ch.to_uppercase().next().unwrap();
698698

699699
// try all possible orderings
700700
for indices in permutohedron::Heap::new(&mut [0, 1, 2, 3]) {

0 commit comments

Comments
 (0)