Skip to content

Commit 004986b

Browse files
committed
avoid unnecessary format!
1 parent c467006 commit 004986b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_hir_typeck/src/fn_ctxt/suggestions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
374374
let annotation_span = ty.span;
375375
err.span_suggestion(
376376
annotation_span.with_hi(annotation_span.lo()),
377-
format!("alternatively, consider changing the type annotation"),
377+
"alternatively, consider changing the type annotation",
378378
suggest_annotation,
379379
Applicability::MaybeIncorrect,
380380
);

0 commit comments

Comments
 (0)