mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 09:03:18 +00:00
15 lines
402 B
Text
15 lines
402 B
Text
error: variables can be used directly in the `format!` string
|
|
--> $DIR/uninlined_format_args_panic.rs:11:5
|
|
|
|
|
LL | println!("val='{}'", var);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::uninlined-format-args` implied by `-D warnings`
|
|
help: change this to
|
|
|
|
|
LL - println!("val='{}'", var);
|
|
LL + println!("val='{var}'");
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|