1
Fork 0

remove a couple of redundant String to String conversion

This commit is contained in:
Matthias Krüger 2024-10-12 22:07:46 +02:00
parent e200c7f2e1
commit 4bc21e318c
4 changed files with 4 additions and 4 deletions

View file

@ -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 {