We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
format!("{x}")
Given a use of a format macro, suggest to use the format!("{x}") syntax when applicable.
format_args_capture
pedantic
let x = 2; println!("{}", x); println!("{x}", x = x); println!("{y}", y = x); // untouched because variable name doesn't match
Could be written as:
let x = 2; println!("{x}"); println!("{x}"); println!("{y}", y = x); // untouched because variable name doesn't match
The text was updated successfully, but these errors were encountered:
Duplicate of #8368.
Sorry, something went wrong.
Thanks for suggesting a new lint!
I'm closing this because of #8675 (comment).
No branches or pull requests
What it does
Given a use of a format macro, suggest to use the
format!("{x}")
syntax when applicable.Lint Name
format_args_capture
Category
pedantic
Advantage
Drawbacks
Example
Could be written as:
The text was updated successfully, but these errors were encountered: