remove a couple of redundant String to String conversion
This commit is contained in:
parent
e200c7f2e1
commit
4bc21e318c
4 changed files with 4 additions and 4 deletions
|
@ -325,7 +325,7 @@ pub fn suggest_constraining_type_params<'a>(
|
|||
let suggestion = if span_to_replace.is_some() {
|
||||
constraint.clone()
|
||||
} else if constraint.starts_with('<') {
|
||||
constraint.to_string()
|
||||
constraint.clone()
|
||||
} else if bound_list_non_empty {
|
||||
format!(" + {constraint}")
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue