remove unnecessary to_string
and String::new
This commit is contained in:
parent
c570ab5a0b
commit
77d6176e69
88 changed files with 292 additions and 340 deletions
|
@ -417,7 +417,7 @@ impl<'a, 'tcx> MirBorrowckCtxt<'a, 'tcx> {
|
|||
err.span_suggestion_verbose(
|
||||
span.shrink_to_hi(),
|
||||
&format!("consider borrowing the `{}`'s content", diag_name.unwrap()),
|
||||
".as_ref()".to_string(),
|
||||
".as_ref()",
|
||||
Applicability::MaybeIncorrect,
|
||||
);
|
||||
} else if let Some(use_spans) = use_spans {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue