clippy::perf fixes
This commit is contained in:
parent
03d488b48a
commit
611bbcb044
10 changed files with 17 additions and 21 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue