1
Fork 0

Rollup merge of #99528 - matthiaskrgr:2022_07_perf, r=estebank

couple of clippy::perf fixes
This commit is contained in:
Matthias Krüger 2022-07-21 18:42:07 +02:00 committed by GitHub
commit 230b775719
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 17 additions and 21 deletions

View file

@ -607,10 +607,10 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> {
"{}, {}={}>",
&constraint[..constraint.len() - 1],
item.name,
term.to_string()
term
);
} else {
constraint.push_str(&format!("<{}={}>", item.name, term.to_string()));
constraint.push_str(&format!("<{}={}>", item.name, term));
}
}