-
Notifications
You must be signed in to change notification settings - Fork 1.7k
clippy::useless_format ignores format!("") #7796
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
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Comments
Maybe |
Example shows how warning looks now, so it's simpler(?) to fix. Bonus points to |
@rustbot claim |
aDotInTheVoid
added a commit
to aDotInTheVoid/rust-clippy
that referenced
this issue
Oct 11, 2021
aDotInTheVoid
added a commit
to aDotInTheVoid/rust-clippy
that referenced
this issue
Oct 11, 2021
aDotInTheVoid
added a commit
to aDotInTheVoid/rust-clippy
that referenced
this issue
Oct 21, 2021
aDotInTheVoid
added a commit
to aDotInTheVoid/rust-clippy
that referenced
this issue
Oct 21, 2021
bors
added a commit
that referenced
this issue
Oct 21, 2021
Make useless_format recognize format!("") Closes #7796 changelog: [`useless_format`] Fix for false negitive for `format!("")`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Uh oh!
There was an error while loading. Please reload this page.
Lint name:
clippy::useless_format
I tried this code:
I expected to see this happen:
Warning from clippy about useless format! call, similar to:
Instead, this happened:
No warning.
Meta
Rust version (
rustc -Vv
):The text was updated successfully, but these errors were encountered: