avoid unnecessary format!
This commit is contained in:
parent
c467006fd0
commit
004986b79b
1 changed files with 1 additions and 1 deletions
|
|
@ -374,7 +374,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
|||
let annotation_span = ty.span;
|
||||
err.span_suggestion(
|
||||
annotation_span.with_hi(annotation_span.lo()),
|
||||
format!("alternatively, consider changing the type annotation"),
|
||||
"alternatively, consider changing the type annotation",
|
||||
suggest_annotation,
|
||||
Applicability::MaybeIncorrect,
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue