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
clippy 0.0.212 (5afdf8b 2018-10-14)
in this code
fn main() { let _: &str = &format!("hello"); }
clippy suggests
warning: useless use of `format!` --> src/main.rs:2:20 | 2 | let _: &str = &format!("hello"); | ^^^^^^^^^^^^^^^^ help: consider using .to_string(): `"hello".to_string()` |
but I think a better solution would be to simply omit the format!() like let _: &str = &"hello"; or let _: &str = "hello";
format!()
let _: &str = &"hello";
let _: &str = "hello";
The text was updated successfully, but these errors were encountered:
No branches or pull requests
clippy 0.0.212 (5afdf8b 2018-10-14)
in this code
clippy suggests
but I think a better solution would be to simply omit the
format!()
likelet _: &str = &"hello";
or
let _: &str = "hello";
The text was updated successfully, but these errors were encountered: