mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-01 08:59:23 +00:00
29 lines
680 B
Text
29 lines
680 B
Text
error: useless use of `format!`
|
|
--> examples/format.rs:6:5
|
|
|
|
|
6 | format!("foo");
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D useless-format` implied by `-D warnings`
|
|
|
|
error: useless use of `format!`
|
|
--> examples/format.rs:8:5
|
|
|
|
|
8 | format!("{}", "foo");
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D useless-format` implied by `-D warnings`
|
|
|
|
error: useless use of `format!`
|
|
--> examples/format.rs:15:5
|
|
|
|
|
15 | format!("{}", arg);
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D useless-format` implied by `-D warnings`
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
error: Could not compile `clippy_tests`.
|
|
|
|
To learn more, run the command again with --verbose.
|