fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: called `.iter().nth()` on a `Vec` 2 --> $DIR/iter_nth.rs:34:23 3 | 4LL | let bad_vec = some_vec.iter().nth(3); 5 | ^^^^^^^^^^^^^^^^^^^^^^ 6 | 7 = help: calling `.get()` is both faster and more readable 8 = note: `-D clippy::iter-nth` implied by `-D warnings` 9 = help: to override `-D warnings` add `#[allow(clippy::iter_nth)]` 10 11error: called `.iter().nth()` on a slice 12 --> $DIR/iter_nth.rs:35:26 13 | 14LL | let bad_slice = &some_vec[..].iter().nth(3); 15 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 16 | 17 = help: calling `.get()` is both faster and more readable 18 19error: called `.iter().nth()` on a slice 20 --> $DIR/iter_nth.rs:36:31 21 | 22LL | let bad_boxed_slice = boxed_slice.iter().nth(3); 23 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 24 | 25 = help: calling `.get()` is both faster and more readable 26 27error: called `.iter().nth()` on a `VecDeque` 28 --> $DIR/iter_nth.rs:37:29 29 | 30LL | let bad_vec_deque = some_vec_deque.iter().nth(3); 31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 32 | 33 = help: calling `.get()` is both faster and more readable 34 35error: called `.iter_mut().nth()` on a `Vec` 36 --> $DIR/iter_nth.rs:42:23 37 | 38LL | let bad_vec = some_vec.iter_mut().nth(3); 39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 40 | 41 = help: calling `.get_mut()` is both faster and more readable 42 43error: called `.iter_mut().nth()` on a slice 44 --> $DIR/iter_nth.rs:45:26 45 | 46LL | let bad_slice = &some_vec[..].iter_mut().nth(3); 47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 48 | 49 = help: calling `.get_mut()` is both faster and more readable 50 51error: called `.iter_mut().nth()` on a `VecDeque` 52 --> $DIR/iter_nth.rs:48:29 53 | 54LL | let bad_vec_deque = some_vec_deque.iter_mut().nth(3); 55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 56 | 57 = help: calling `.get_mut()` is both faster and more readable 58 59error: aborting due to 7 previous errors 60