mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-11 22:02:55 +00:00
c2c73189c8
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
11 lines
375 B
Text
11 lines
375 B
Text
error: it is more idiomatic to use `v1.iter().enumerate()`
|
|
--> $DIR/range.rs:6:14
|
|
|
|
|
LL | let _x = v1.iter().zip(0..v1.len());
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::range-zip-with-len` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::range_zip_with_len)]`
|
|
|
|
error: aborting due to 1 previous error
|
|
|