Skip to content

Commit 49bad0b

Browse files
committed
fix compiler error round 2
1 parent 5430235 commit 49bad0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_hir_analysis/src/structured_errors/missing_cast_for_variadic_arg.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ impl<'tcx> StructuredDiagnostic<'tcx> for MissingCastForVariadicArg<'tcx, '_> {
5454
} else {
5555
err.span_suggestion(
5656
self.span,
57-
&format!("cast the value to `{}`", self.cast_ty),
57+
format!("cast the value to `{}`", self.cast_ty),
5858
format!("{} as {}", snippet, self.cast_ty),
5959
Applicability::MachineApplicable,
6060
);
6161
}
6262
} else {
63-
err.help(&format!("cast the value into `{}`", self.cast_ty));
63+
err.help(format!("cast the value into `{}`", self.cast_ty));
6464
}
6565

6666
err

0 commit comments

Comments
 (0)