You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: called `.iter().nth()` on a Vec. Calling `.get()` is both faster and more readable
295
-
--> $DIR/methods.rs:342:23
295
+
--> $DIR/methods.rs:306:23
296
296
|
297
297
LL | let bad_vec = some_vec.iter().nth(3);
298
298
| ^^^^^^^^^^^^^^^^^^^^^^
299
299
|
300
300
= note: `-D clippy::iter-nth` implied by `-D warnings`
301
301
302
302
error: called `.iter().nth()` on a slice. Calling `.get()` is both faster and more readable
303
-
--> $DIR/methods.rs:343:26
303
+
--> $DIR/methods.rs:307:26
304
304
|
305
305
LL | let bad_slice = &some_vec[..].iter().nth(3);
306
306
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
307
307
308
308
error: called `.iter().nth()` on a slice. Calling `.get()` is both faster and more readable
309
-
--> $DIR/methods.rs:344:31
309
+
--> $DIR/methods.rs:308:31
310
310
|
311
311
LL | let bad_boxed_slice = boxed_slice.iter().nth(3);
312
312
| ^^^^^^^^^^^^^^^^^^^^^^^^^
313
313
314
314
error: called `.iter().nth()` on a VecDeque. Calling `.get()` is both faster and more readable
315
-
--> $DIR/methods.rs:345:29
315
+
--> $DIR/methods.rs:309:29
316
316
|
317
317
LL | let bad_vec_deque = some_vec_deque.iter().nth(3);
318
318
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
319
319
320
320
error: called `.iter_mut().nth()` on a Vec. Calling `.get_mut()` is both faster and more readable
321
-
--> $DIR/methods.rs:350:23
321
+
--> $DIR/methods.rs:314:23
322
322
|
323
323
LL | let bad_vec = some_vec.iter_mut().nth(3);
324
324
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
325
325
326
326
error: called `.iter_mut().nth()` on a slice. Calling `.get_mut()` is both faster and more readable
327
-
--> $DIR/methods.rs:353:26
327
+
--> $DIR/methods.rs:317:26
328
328
|
329
329
LL | let bad_slice = &some_vec[..].iter_mut().nth(3);
330
330
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
331
331
332
332
error: called `.iter_mut().nth()` on a VecDeque. Calling `.get_mut()` is both faster and more readable
333
-
--> $DIR/methods.rs:356:29
333
+
--> $DIR/methods.rs:320:29
334
334
|
335
335
LL | let bad_vec_deque = some_vec_deque.iter_mut().nth(3);
336
336
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
337
337
338
338
error: used unwrap() on an Option value. If you don't want to handle the None case gracefully, consider using expect() to provide a better panic message
0 commit comments