]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/unused_format_specs.stderr
Rollup merge of #105801 - zertosh:path_mut_os_str_doc_test, r=dtolnay
[rust.git] / src / tools / clippy / tests / ui / unused_format_specs.stderr
1 error: empty precision specifier has no effect
2   --> $DIR/unused_format_specs.rs:8:17
3    |
4 LL |     println!("{:.}", 1.0);
5    |                 ^
6    |
7    = note: a precision specifier is not required to format floats
8    = note: `-D clippy::unused-format-specs` implied by `-D warnings`
9 help: remove the `.`
10    |
11 LL -     println!("{:.}", 1.0);
12 LL +     println!("{}", 1.0);
13    |
14
15 error: empty precision specifier has no effect
16   --> $DIR/unused_format_specs.rs:9:18
17    |
18 LL |     println!("{f:.} {f:.?}");
19    |                  ^
20    |
21    = note: a precision specifier is not required to format floats
22 help: remove the `.`
23    |
24 LL -     println!("{f:.} {f:.?}");
25 LL +     println!("{f} {f:.?}");
26    |
27
28 error: empty precision specifier has no effect
29   --> $DIR/unused_format_specs.rs:9:24
30    |
31 LL |     println!("{f:.} {f:.?}");
32    |                        ^
33    |
34    = note: a precision specifier is not required to format floats
35 help: remove the `.`
36    |
37 LL -     println!("{f:.} {f:.?}");
38 LL +     println!("{f:.} {f:?}");
39    |
40
41 error: empty precision specifier has no effect
42   --> $DIR/unused_format_specs.rs:11:17
43    |
44 LL |     println!("{:.}", 1);
45    |                 ^
46    |
47 help: remove the `.`
48    |
49 LL -     println!("{:.}", 1);
50 LL +     println!("{}", 1);
51    |
52
53 error: aborting due to 4 previous errors
54