-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add inefficient_to_string
lint
#4683
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything else LGTM.
@@ -0,0 +1,31 @@ | |||
#![deny(clippy::inefficient_to_string)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add // run-rustfix
to make this a rustfix
test?
0674d01
to
ffb53e7
Compare
(You'll also need to update the test expectations) |
Co-Authored-By: Manish Goregaokar <[email protected]>
82dbeb3
to
2106a23
Compare
@bors r+ thanks! |
📌 Commit 2106a23 has been approved by |
Add `inefficient_to_string` lint Closes #4586 changelog: Add `inefficient_to_string` lint, which checks for calling `to_string` on `&&str`, which would bypass the `str`'s specialization
☀️ Test successful - checks-travis, status-appveyor |
Closes #4586
changelog: Add
inefficient_to_string
lint, which checks for callingto_string
on&&str
, which would bypass thestr
's specialization