]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/needless_question_mark.rs
Auto merge of #9546 - kraktus:default_not_default_trait, r=xFrednet
[rust.git] / clippy_lints / src / needless_question_mark.rs
index 8f85b00596c019f248a290b2087771977257e377..59b6492e112c05453c4dc24cdbf50d2c070d2ef7 100644 (file)
@@ -134,7 +134,7 @@ fn check(cx: &LateContext<'_>, expr: &Expr<'_>) {
                 NEEDLESS_QUESTION_MARK,
                 expr.span,
                 "question mark operator is useless here",
-                &format!("try removing question mark and `{}`", sugg_remove),
+                &format!("try removing question mark and `{sugg_remove}`"),
                 format!("{}", snippet(cx, inner_expr.span, r#""...""#)),
                 Applicability::MachineApplicable,
             );