We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
format!
1 parent 423b54a commit 7852962Copy full SHA for 7852962
clippy_lints/src/methods/clear_with_drain.rs
@@ -44,7 +44,7 @@ fn suggest(cx: &LateContext<'_>, expr: &Expr<'_>, recv: &Expr<'_>, span: Span) {
44
cx,
45
CLEAR_WITH_DRAIN,
46
span.with_hi(expr.span.hi()),
47
- &format!("`drain` used to clear a `{}`", ty_name),
+ &format!("`drain` used to clear a `{ty_name}`"),
48
"try",
49
"clear()".to_string(),
50
Applicability::MachineApplicable,
0 commit comments