mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-20 01:54:49 +00:00
c2c73189c8
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
16 lines
487 B
Text
16 lines
487 B
Text
error: variables can be used directly in the `format!` string
|
|
--> $DIR/uninlined_format_args_panic.rs:10:5
|
|
|
|
|
LL | println!("val='{}'", var);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::uninlined-format-args` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::uninlined_format_args)]`
|
|
help: change this to
|
|
|
|
|
LL - println!("val='{}'", var);
|
|
LL + println!("val='{var}'");
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|