- Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-positiveIssue: The lint was triggered on code it shouldn't haveIssue: The lint was triggered on code it shouldn't have
Description
FromIterator
is not in the prelude, so crates that want to provide an easily accessible from_iter
method might want to duplicate it as an inherent method (providing both FromIterator and an inherent method). For this reason, I think the lint fires incorrectly - it suggests implementing FromIterator (the trait is already implemented, too) and implicitly suggests removing the inherent method (style/convenience I would disagree with).
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-positiveIssue: The lint was triggered on code it shouldn't haveIssue: The lint was triggered on code it shouldn't have