needless_pass_by_value and closures #2434
Labels
C-bug
Category: Clippy is not doing the correct thing
E-medium
Call for participation: Medium difficulty level problem and requires some initial experience.
L-correctness
Lint: Belongs in the correctness lint group
Given this example code:
Clippy suggests changing
v: String
tov: &str
butmy_validator
is given toArg::validator
which requiresString
.Could clippy investigate the function usage in situations like this to prevent suggestions such as this?
The text was updated successfully, but these errors were encountered: