]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_hir_typeck/src/method/suggest.rs
Merge from rustc
[rust.git] / compiler / rustc_hir_typeck / src / method / suggest.rs
index d40a66715a2ea63a0d7d2af6da0b1a41fc5c06ee..7c5a9a333feba56da059e18d4b90b1cf1563db56 100644 (file)
@@ -1007,7 +1007,7 @@ trait bound{s}",
                         if def_kind == DefKind::AssocFn && lev_candidate.fn_has_self_parameter {
                             err.span_suggestion(
                                 span,
-                                &format!("there is a method with a similar name",),
+                                "there is a method with a similar name",
                                 lev_candidate.name,
                                 Applicability::MaybeIncorrect,
                             );