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
305
-
--> $DIR/methods.rs:361:23
231
+
--> $DIR/methods.rs:298:23
306
232
|
307
233
LL | let bad_vec = some_vec.iter().nth(3);
308
234
| ^^^^^^^^^^^^^^^^^^^^^^
309
235
|
310
236
= note: `-D clippy::iter-nth` implied by `-D warnings`
311
237
312
238
error: called `.iter().nth()` on a slice. Calling `.get()` is both faster and more readable
313
-
--> $DIR/methods.rs:362:26
239
+
--> $DIR/methods.rs:299:26
314
240
|
315
241
LL | let bad_slice = &some_vec[..].iter().nth(3);
316
242
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
317
243
318
244
error: called `.iter().nth()` on a slice. Calling `.get()` is both faster and more readable
319
-
--> $DIR/methods.rs:363:31
245
+
--> $DIR/methods.rs:300:31
320
246
|
321
247
LL | let bad_boxed_slice = boxed_slice.iter().nth(3);
322
248
| ^^^^^^^^^^^^^^^^^^^^^^^^^
323
249
324
250
error: called `.iter().nth()` on a VecDeque. Calling `.get()` is both faster and more readable
325
-
--> $DIR/methods.rs:364:29
251
+
--> $DIR/methods.rs:301:29
326
252
|
327
253
LL | let bad_vec_deque = some_vec_deque.iter().nth(3);
328
254
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
329
255
330
256
error: called `.iter_mut().nth()` on a Vec. Calling `.get_mut()` is both faster and more readable
331
-
--> $DIR/methods.rs:369:23
257
+
--> $DIR/methods.rs:306:23
332
258
|
333
259
LL | let bad_vec = some_vec.iter_mut().nth(3);
334
260
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
335
261
336
262
error: called `.iter_mut().nth()` on a slice. Calling `.get_mut()` is both faster and more readable
337
-
--> $DIR/methods.rs:372:26
263
+
--> $DIR/methods.rs:309:26
338
264
|
339
265
LL | let bad_slice = &some_vec[..].iter_mut().nth(3);
340
266
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
341
267
342
268
error: called `.iter_mut().nth()` on a VecDeque. Calling `.get_mut()` is both faster and more readable
343
-
--> $DIR/methods.rs:375:29
269
+
--> $DIR/methods.rs:312:29
344
270
|
345
271
LL | let bad_vec_deque = some_vec_deque.iter_mut().nth(3);
346
272
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
347
273
348
274
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
349
-
--> $DIR/methods.rs:387:13
275
+
--> $DIR/methods.rs:324:13
350
276
|
351
277
LL | let _ = opt.unwrap();
352
278
| ^^^^^^^^^^^^
353
279
|
354
280
= note: `-D clippy::option-unwrap-used` implied by `-D warnings`
0 commit comments