Rollup merge of #76522 - matthiaskrgr:redundant_clone, r=jonas-schievink

remove redundant clones

(clippy::redundant_clone)
This commit is contained in:
Tyler Mandry 2020-09-09 15:06:05 -07:00 committed by GitHub
commit 09c614948f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -1387,7 +1387,7 @@ impl<'tcx> LifetimeContext<'_, 'tcx> {
}
}
}
introduce_suggestion.push((*for_span, for_sugg.to_string()));
introduce_suggestion.push((*for_span, for_sugg));
introduce_suggestion.push((span, formatter(&lt_name)));
err.multipart_suggestion(&msg, introduce_suggestion, Applicability::MaybeIncorrect);
}