rustc: minor changes suggested by clippy perf lints.
This commit is contained in:
parent
9bd71afb90
commit
1b3733e5a4
4 changed files with 4 additions and 8 deletions
|
@ -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}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue