Encourage removing { .. }
from a pattern if enum variant is field-less
#13400
Labels
A-lint
Area: New lints
What it does
Match patterns using
Enum::Variant { .. }
should be linted on if the enum variant is field-less.Example:
Advantage
Drawbacks
None as far I can tell.
Example
Could be written as:
The text was updated successfully, but these errors were encountered: