mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 00:53:31 +00:00
48027105dc
Resolves #2505 Suggests that you use `"foo".to_string()` instead of `format!("foo")`.
10 lines
262 B
Text
10 lines
262 B
Text
error: useless use of `format!`
|
|
--> $DIR/format.rs:6:5
|
|
|
|
|
6 | format!("foo");
|
|
| ^^^^^^^^^^^^^^^ help: consider using .to_string(): `"foo".to_string()`
|
|
|
|
|
= note: `-D useless-format` implied by `-D warnings`
|
|
|
|
error: aborting due to previous error
|
|
|