2022-10-23 13:18:45 +00:00
|
|
|
error: variables can be used directly in the `format!` string
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/uninlined_format_args_panic.rs:10:5
|
2022-10-23 13:18:45 +00:00
|
|
|
|
|
|
|
|
LL | println!("val='{}'", var);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::uninlined-format-args` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::uninlined_format_args)]`
|
2022-10-23 13:18:45 +00:00
|
|
|
help: change this to
|
|
|
|
|
|
|
|
|
LL - println!("val='{}'", var);
|
|
|
|
LL + println!("val='{var}'");
|
|
|
|
|
|
|
|
|
|
2023-11-21 17:08:42 +00:00
|
|
|
error: aborting due to 1 previous error
|
2022-10-23 13:18:45 +00:00
|
|
|
|