avoid &str to String conversions

This commit is contained in:
Takayuki Maeda
2023-02-27 14:27:13 +09:00
parent 58136ffa92
commit 934c8c2299
3 changed files with 3 additions and 3 deletions

View File

@@ -467,7 +467,7 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
err.span_suggestion_verbose(
span.shrink_to_lo(),
"consider borrowing here",
"&".to_string(),
'&',
Applicability::MaybeIncorrect,
);
}