When derive
is already applied to struct, suggest extending it, not replacing it
#3053
Labels
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
L-suggestion
Lint: Improving, adding or fixing lint suggestions
The following suggestion to add
derive(Debug)
does not take into consideration that line 170 already has anotherderive
. It should suggest extending the existingderive
instead of a new line:Which when applying leads to having the following code:
The text was updated successfully, but these errors were encountered: