1 error: empty precision specifier has no effect
2 --> $DIR/unused_format_specs.rs:8:17
4 LL | println!("{:.}", 1.0);
7 = note: a precision specifier is not required to format floats
8 = note: `-D clippy::unused-format-specs` implied by `-D warnings`
11 LL - println!("{:.}", 1.0);
12 LL + println!("{}", 1.0);
15 error: empty precision specifier has no effect
16 --> $DIR/unused_format_specs.rs:9:18
18 LL | println!("{f:.} {f:.?}");
21 = note: a precision specifier is not required to format floats
24 LL - println!("{f:.} {f:.?}");
25 LL + println!("{f} {f:.?}");
28 error: empty precision specifier has no effect
29 --> $DIR/unused_format_specs.rs:9:24
31 LL | println!("{f:.} {f:.?}");
34 = note: a precision specifier is not required to format floats
37 LL - println!("{f:.} {f:.?}");
38 LL + println!("{f:.} {f:?}");
41 error: empty precision specifier has no effect
42 --> $DIR/unused_format_specs.rs:11:17
44 LL | println!("{:.}", 1);
49 LL - println!("{:.}", 1);
50 LL + println!("{}", 1);
53 error: aborting due to 4 previous errors