Skip to content

Commit 7852962

Browse files
committed
Change format! style to please dogfood test
1 parent 423b54a commit 7852962

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/methods/clear_with_drain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fn suggest(cx: &LateContext<'_>, expr: &Expr<'_>, recv: &Expr<'_>, span: Span) {
4444
cx,
4545
CLEAR_WITH_DRAIN,
4646
span.with_hi(expr.span.hi()),
47-
&format!("`drain` used to clear a `{}`", ty_name),
47+
&format!("`drain` used to clear a `{ty_name}`"),
4848
"try",
4949
"clear()".to_string(),
5050
Applicability::MachineApplicable,

0 commit comments

Comments
 (0)