-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
A-lintArea: New lintsArea: New lintsL-suggestionLint: Improving, adding or fixing lint suggestionsLint: Improving, adding or fixing lint suggestionsgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy
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();
dswij, ozkriff, tomkarw, didibear, mkulke and 2 more
Metadata
Metadata
Assignees
Labels
A-lintArea: New lintsArea: New lintsL-suggestionLint: Improving, adding or fixing lint suggestionsLint: Improving, adding or fixing lint suggestionsgood first issueThese issues are a good way to get started with ClippyThese issues are a good way to get started with Clippy