FR: redundant_field_names should distinguish between all and some fields matching #3422
Labels
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
good-first-issue
These issues are a good way to get started with Clippy
L-style
Lint: Belongs in the style lint group
redundant_field_names
fires on any field being a match. This impairs readability in cases like this:As you can see, if you apply the suggestion, you end up with a weird line that is different from the rest. I suggest that the lint be split such that it distinguishes between "all fields are redundant" and "some fields are redundant".
The text was updated successfully, but these errors were encountered: