2022-10-23 13:18:45 +00:00
|
|
|
error: format specifiers have no effect on `format_args!()`
|
|
|
|
--> $DIR/unused_format_specs_unfixable.rs:12:15
|
|
|
|
|
|
|
|
|
LL | println!("{:5}.", format_args!(""));
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::unused-format-specs` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::unused_format_specs)]`
|
2022-10-23 13:18:45 +00:00
|
|
|
help: for the width to apply consider using `format!()`
|
|
|
|
|
|
|
|
|
LL | println!("{:5}.", format!(""));
|
|
|
|
| ~~~~~~
|
|
|
|
help: if the current behavior is intentional, remove the format specifiers
|
|
|
|
|
|
|
|
|
LL - println!("{:5}.", format_args!(""));
|
|
|
|
LL + println!("{}.", format_args!(""));
|
|
|
|
|
|
|
|
|
|
|
|
|
error: format specifiers have no effect on `format_args!()`
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/unused_format_specs_unfixable.rs:16:15
|
2022-10-23 13:18:45 +00:00
|
|
|
|
|
|
|
|
LL | println!("{:.3}", format_args!("abcde"));
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
help: for the precision to apply consider using `format!()`
|
|
|
|
|
|
|
|
|
LL | println!("{:.3}", format!("abcde"));
|
|
|
|
| ~~~~~~
|
|
|
|
help: if the current behavior is intentional, remove the format specifiers
|
|
|
|
|
|
|
|
|
LL - println!("{:.3}", format_args!("abcde"));
|
|
|
|
LL + println!("{}", format_args!("abcde"));
|
|
|
|
|
|
|
|
|
|
|
|
|
error: format specifiers have no effect on `format_args!()`
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/unused_format_specs_unfixable.rs:19:15
|
2022-10-23 13:18:45 +00:00
|
|
|
|
|
|
|
|
LL | println!("{:5}.", format_args_from_macro!());
|
|
|
|
| ^^^^
|
|
|
|
|
|
2023-04-11 13:31:08 +00:00
|
|
|
= help: for the width to apply consider using `format!()`
|
2022-10-23 13:18:45 +00:00
|
|
|
help: if the current behavior is intentional, remove the format specifiers
|
|
|
|
|
|
|
|
|
LL - println!("{:5}.", format_args_from_macro!());
|
|
|
|
LL + println!("{}.", format_args_from_macro!());
|
|
|
|
|
|
|
|
|
|
|
|
|
error: format specifiers have no effect on `format_args!()`
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/unused_format_specs_unfixable.rs:23:15
|
2022-10-23 13:18:45 +00:00
|
|
|
|
|
|
|
|
LL | println!("{args:5}");
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
2023-04-11 13:31:08 +00:00
|
|
|
= help: for the width to apply consider using `format!()`
|
2022-10-23 13:18:45 +00:00
|
|
|
help: if the current behavior is intentional, remove the format specifiers
|
|
|
|
|
|
|
|
|
LL - println!("{args:5}");
|
|
|
|
LL + println!("{args}");
|
|
|
|
|
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|