-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.A-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`Area: Suggestions generated by the compiler applied by `cargo fix`
Description
My where clauses in traits recently had some unnecessary noise that the compiler could warn against:
What I was doing:
impl<T> SomeTrait<T> where T: Clone, T: Debug
What I should have been doing:
impl<T> SomeTrait<T> where T: Clone + Debug
I'd be happy to implement this myself if there's a consensus on adding this as a warning, though I may need some mentoring 👍
estebank
Metadata
Metadata
Assignees
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.A-suggestion-diagnosticsArea: Suggestions generated by the compiler applied by `cargo fix`Area: Suggestions generated by the compiler applied by `cargo fix`