use_self False positive on enums that derive Serialize #9440
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
When an enum has
#[derive(Serialize)]
, it triggers theuse_self
lintLint Name
use_self
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
No warnings
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: