@@ -15,41 +15,41 @@ error: useless use of `format!`
15
15
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
16
16
17
17
error: useless use of `format!`
18
- --> $DIR/format.rs:17 :5
18
+ --> $DIR/format.rs:18 :5
19
19
|
20
- 17 | format!("{:+}", "foo"); // warn when the format makes no difference
20
+ 18 | format!("{:+}", "foo"); // warn when the format makes no difference
21
21
| ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using .to_string(): `"foo".to_string()`
22
22
|
23
23
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
24
24
25
25
error: useless use of `format!`
26
- --> $DIR/format.rs:18 :5
26
+ --> $DIR/format.rs:19 :5
27
27
|
28
- 18 | format!("{:<}", "foo"); // warn when the format makes no difference
28
+ 19 | format!("{:<}", "foo"); // warn when the format makes no difference
29
29
| ^^^^^^^^^^^^^^^^^^^^^^^ help: consider using .to_string(): `"foo".to_string()`
30
30
|
31
31
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
32
32
33
33
error: useless use of `format!`
34
- --> $DIR/format.rs:23 :5
34
+ --> $DIR/format.rs:24 :5
35
35
|
36
- 23 | format!("{}", arg);
36
+ 24 | format!("{}", arg);
37
37
| ^^^^^^^^^^^^^^^^^^^ help: consider using .to_string(): `arg.to_string()`
38
38
|
39
39
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
40
40
41
41
error: useless use of `format!`
42
- --> $DIR/format.rs:26 :5
42
+ --> $DIR/format.rs:28 :5
43
43
|
44
- 26 | format!("{:+}", arg); // warn when the format makes no difference
44
+ 28 | format!("{:+}", arg); // warn when the format makes no difference
45
45
| ^^^^^^^^^^^^^^^^^^^^^ help: consider using .to_string(): `arg.to_string()`
46
46
|
47
47
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
48
48
49
49
error: useless use of `format!`
50
- --> $DIR/format.rs:27 :5
50
+ --> $DIR/format.rs:29 :5
51
51
|
52
- 27 | format!("{:<}", arg); // warn when the format makes no difference
52
+ 29 | format!("{:<}", arg); // warn when the format makes no difference
53
53
| ^^^^^^^^^^^^^^^^^^^^^ help: consider using .to_string(): `arg.to_string()`
54
54
|
55
55
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
0 commit comments