remove a couple of redundant String to String conversion

This commit is contained in:
Matthias Krüger
2024-10-12 22:07:46 +02:00
parent e200c7f2e1
commit 4bc21e318c
4 changed files with 4 additions and 4 deletions

View File

@@ -706,7 +706,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, 'infcx, 'tcx> {
suggestions.push((
pat_span,
format!("consider removing the {to_remove}"),
suggestion.to_string(),
suggestion,
));
}
}