Change format! style to please dogfood test

This commit is contained in:
bluthej 2023-04-09 13:37:02 +02:00
parent 423b54ac12
commit 7852962820

View file

@ -44,7 +44,7 @@ fn suggest(cx: &LateContext<'_>, expr: &Expr<'_>, recv: &Expr<'_>, span: Span) {
cx,
CLEAR_WITH_DRAIN,
span.with_hi(expr.span.hi()),
&format!("`drain` used to clear a `{}`", ty_name),
&format!("`drain` used to clear a `{ty_name}`"),
"try",
"clear()".to_string(),
Applicability::MachineApplicable,