1
Fork 0

rustc: minor changes suggested by clippy perf lints.

This commit is contained in:
Nicholas Nethercote 2023-11-06 13:06:40 +11:00
parent 9bd71afb90
commit 1b3733e5a4
4 changed files with 4 additions and 8 deletions

View file

@ -274,7 +274,7 @@ pub fn suggest_constraining_type_params<'a>(
span,
if span_to_replace.is_some() {
constraint.clone()
} else if constraint.starts_with("<") {
} else if constraint.starts_with('<') {
constraint.to_string()
} else if bound_list_non_empty {
format!(" + {constraint}")