1 error: called `.iter().nth()` on a Vec. Calling `.get()` is both faster and more readable
2 --> $DIR/iter_nth.rs:33:23
4 LL | let bad_vec = some_vec.iter().nth(3);
5 | ^^^^^^^^^^^^^^^^^^^^^^
7 = note: `-D clippy::iter-nth` implied by `-D warnings`
9 error: called `.iter().nth()` on a slice. Calling `.get()` is both faster and more readable
10 --> $DIR/iter_nth.rs:34:26
12 LL | let bad_slice = &some_vec[..].iter().nth(3);
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
15 error: called `.iter().nth()` on a slice. Calling `.get()` is both faster and more readable
16 --> $DIR/iter_nth.rs:35:31
18 LL | let bad_boxed_slice = boxed_slice.iter().nth(3);
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^
21 error: called `.iter().nth()` on a VecDeque. Calling `.get()` is both faster and more readable
22 --> $DIR/iter_nth.rs:36:29
24 LL | let bad_vec_deque = some_vec_deque.iter().nth(3);
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 error: called `.iter_mut().nth()` on a Vec. Calling `.get_mut()` is both faster and more readable
28 --> $DIR/iter_nth.rs:41:23
30 LL | let bad_vec = some_vec.iter_mut().nth(3);
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
33 error: called `.iter_mut().nth()` on a slice. Calling `.get_mut()` is both faster and more readable
34 --> $DIR/iter_nth.rs:44:26
36 LL | let bad_slice = &some_vec[..].iter_mut().nth(3);
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39 error: called `.iter_mut().nth()` on a VecDeque. Calling `.get_mut()` is both faster and more readable
40 --> $DIR/iter_nth.rs:47:29
42 LL | let bad_vec_deque = some_vec_deque.iter_mut().nth(3);
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45 error: aborting due to 7 previous errors