Lint suggestion: warn on use
statements already imported via the prelude
#1124
Labels
A-lint
Area: New lints
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
L-unnecessary
Lint: Warn about unnecessary code
A large number of traits, types and functions are imported into a rust crate implicitly through the standard prelude. However, when you explicitly bring one of these items in the prelude into scope using the
use
statement, the rust compiler doesn't warn that theuse
is unnecessary.A clippy warning for this could help shave unnecessary lines. This should probably not run on crates with #![no_std]
The text was updated successfully, but these errors were encountered: