-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thing
Description
For the following code:
fn main() {
let start = 0;
let fin = 10;
let vals: Vec<i32> = (start..fin).map(|v| v * v).collect();
println!("{:?}", vals);
}
Clippy warns:
warning: redundant field names in struct initialization
--> src/main.rs:4:27
|
4 | let vals: Vec<i32> = (start..fin).map(|v| v * v).collect();
| ^^^^^ help: replace it with: `start`
|
= note: #[warn(redundant_field_names)] on by default
= help: for further information visit https://rust-lang-nursery.github.io/rust-clippy/v0.0.204/index.html#redundant_field_names
Is this a legitimate lint?
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thing