1
Fork 0

fix clippy::useless_format

This commit is contained in:
Matthias Krüger 2023-07-23 11:14:52 +02:00
parent adf759bf6a
commit b594798ae3
6 changed files with 12 additions and 16 deletions

View file

@ -1471,7 +1471,7 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
let span = if needs_parens { span } else { span.shrink_to_lo() };
let suggestions = if !needs_parens {
vec![(span.shrink_to_lo(), format!("{}", sugg_prefix))]
vec![(span.shrink_to_lo(), sugg_prefix)]
} else {
vec![
(span.shrink_to_lo(), format!("{}(", sugg_prefix)),