-Wclippy::nursery generates use_self when enum derives strum_macros::Display #8910
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
I am using the strum and strum_macros crates, both on version 0.24.0.
When an enum derives
strum_macros::Display
and clippy is invoked with-Wclippy::nursery
(i.e.cargo clippy -- -Wclippy::nursery
), a warning is generated telling me to replace the enum's name with Self.Lint Name
clippy::use-self
Reproducer
I tried this code:
I saw this happen:
enum Self
here would not be valid.Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: