New lint: adding a char
to a String through to_string()
#12775
Labels
A-lint
Area: New lints
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
What it does
Warns when turning a
char
into aString
before pushing it to anotherString
.Advantage
char
String
Drawbacks
No response
Example
Could be written as:
The text was updated successfully, but these errors were encountered: