Filter serde exported variants in wildcard_enum_match_arm
#5733
Labels
C-bug
Category: Clippy is not doing the correct thing
good-first-issue
These issues are a good way to get started with Clippy
I-false-positive
Issue: The lint was triggered on code it shouldn't have
T-macros
Type: Issues with macros and macro expansion
Hi there! I frequently encounter
clippy::restriction
hits forwildcard_enum_match_arm
but for items that are generated byserde
and are private/hidden (notice leading underscore convention).Could arms like this be selectively filtered out for this lint? I don't think it'll improve readability if I add this arm (I don't even think I can add this arm since the item is private) and I think these are closer to informal artifacts generated by
serde
rather than an api that should be relied on.At the moment my go to solution is to
#[allow(...)]
it for the function its found in but it ends up reading like tedious noise.Curious to hear thoughts on this!
The text was updated successfully, but these errors were encountered: