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
useless_concat
Checks for the use of concat!("takes a single string literal").
concat!("takes a single string literal")
Redundant code. The type of a literal yielded by concat! and the type of a string literal are both &'static str.
concat!
&'static str
No response
let foo = concat!("foo");
Could be written as:
let foo = "foo";
The text was updated successfully, but these errors were encountered:
Opened #13829.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
What it does
Checks for the use of
concat!("takes a single string literal")
.Advantage
Redundant code. The type of a literal yielded by
concat!
and the type of a string literal are both&'static str
.Drawbacks
No response
Example
Could be written as:
The text was updated successfully, but these errors were encountered: