1 #![warn(clippy::unused_format_specs)]
4 macro_rules! format_args_from_macro {
6 format_args!("from macro")
11 // prints `.`, not ` .`
12 println!("{:5}.", format_args!(""));
13 //prints `abcde`, not `abc`
14 println!("{:.3}", format_args!("abcde"));
16 println!("{:5}.", format_args_from_macro!());
18 let args = format_args!("");
22 fn should_not_lint() {
23 println!("{}", format_args!(""));
24 // Technically the same as `{}`, but the `format_args` docs specifically mention that you can use
25 // debug formatting so allow it
26 println!("{:?}", format_args!(""));
28 let args = format_args!("");