Closed
Description
What it does
Warns about needless / redundant type annotations.
Lint Name
redundant_type_annotation
Category
style, pedantic
Advantage
Code is more idiomatic, shorter, and easier to modify.
Drawbacks
Types may be added by some novice Rust developers as hints to help remember what type is present.
Example
let foo: String = String::new();
Could be written as:
let foo = String::new();