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