Skip to content

Commit 490569c

Browse files
committed
Bless clippy ui tests after format_args change
1 parent 730249d commit 490569c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/tools/clippy/tests/ui/to_string_in_display.stderr

+10-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,14 @@ LL | write!(f, "{}", self.to_string())
66
|
77
= note: `-D clippy::to-string-in-display` implied by `-D warnings`
88

9-
error: aborting due to previous error
9+
error: unnecessary use of `to_string`
10+
--> $DIR/to_string_in_display.rs:55:50
11+
|
12+
LL | Self::E(string) => write!(f, "E {}", string.to_string()),
13+
| ^^^^^^^^^^^^^^^^^^
14+
|
15+
= note: `-D clippy::unnecessary-to-owned` implied by `-D warnings`
16+
= note: this error originates in the macro `$crate::format_args` (in Nightly builds, run with -Z macro-backtrace for more info)
17+
18+
error: aborting due to 2 previous errors
1019

0 commit comments

Comments
 (0)