Skip to content

Commit f52dd30

Browse files
smoeliuscamsteffen
andcommitted
Update tests/ui/format_args_unfixable.stderr
Co-authored-by: Cameron Steffen <cam.steffen94@gmail.com>
1 parent 24804d3 commit f52dd30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/ui/format_args_unfixable.stderr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ LL | println!("error: {}", format!("something failed at {}", Location::calle
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= note: `-D clippy::format-in-format-args` implied by `-D warnings`
8-
= help: inline the `format!` call
8+
= help: combine the `format!(..)` arguments with the outer `println!(..)` call
9+
= help: or consider changing `format!` to `format_args!`
910

1011
error: `format!` in `println!` args
1112
--> $DIR/format_args_unfixable.rs:15:5

0 commit comments

Comments
 (0)