- 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 thingE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.Call for participation: Medium difficulty level problem and requires some initial experience.I-false-positiveIssue: The lint was triggered on code it shouldn't haveIssue: The lint was triggered on code it shouldn't have
Description
Hi!
I have some code that uses multiple impls to add methods to specific generic parameters.
The code in question is here but the warning also contains the "problematic" bits.
Clippy doesn't like this when I enable restrictions
warning: Multiple implementations of this structure --> src\layout\linear\mod.rs:121:1 | 121 | / impl LinearLayout<Vertical<horizontal::Left, Tight>, Guard> { 122 | | /// Create a new, empty [`LinearLayout`] that places views top to bottom 123 | | #[inline] 124 | | pub fn vertical() -> Self { ... | 129 | | } 130 | | } | |_^ | note: the lint level is defined here --> src\lib.rs:122:5 | 122 | clippy::restriction, | ^^^^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::multiple_inherent_impl)]` implied by `#[warn(clippy::restriction)]` note: First implementation here --> src\layout\linear\mod.rs:110:1 | 110 | / impl LinearLayout<Horizontal<vertical::Bottom, Tight>, Guard> { 111 | | /// Create a new, empty [`LinearLayout`] that places views left to right 112 | | #[inline] 113 | | pub fn horizontal() -> Self { ... | 118 | | } 119 | | } | |_^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_inherent_impl
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingE-mediumCall for participation: Medium difficulty level problem and requires some initial experience.Call for participation: Medium difficulty level problem and requires some initial experience.I-false-positiveIssue: The lint was triggered on code it shouldn't haveIssue: The lint was triggered on code it shouldn't have