couple of clippy::perf fixes

This commit is contained in:
Matthias Krüger 2022-04-13 22:18:28 +02:00
parent 0d13f6afeb
commit bbd7ce6904
6 changed files with 6 additions and 7 deletions

View file

@ -2724,9 +2724,9 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
&format!(
"consider annotating `{}` with `#[derive({})]`",
trait_pred.skip_binder().self_ty(),
diagnostic_name.to_string(),
diagnostic_name,
),
format!("#[derive({})]\n", diagnostic_name.to_string()),
format!("#[derive({})]\n", diagnostic_name),
Applicability::MaybeIncorrect,
);
}