Lint functions taking references as arguments but only use them to create an owned value #1563
Labels
A-lint
Area: New lints
E-hard
Call for participation: This a hard problem and requires more experience or effort to work on
good-first-issue
These issues are a good way to get started with Clippy
L-unnecessary
Lint: Warn about unnecessary code
T-middle
Type: Probably requires verifiying types
A function that takes a
&str
and always converts it to aString
, should be taking aString
argument instead. This is hard to generalize, but we could start with anything implementingto_owned
and only callingto_owned
.The text was updated successfully, but these errors were encountered: