Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/syntax/src/ast/make.rs')
-rw-r--r--crates/syntax/src/ast/make.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/syntax/src/ast/make.rs b/crates/syntax/src/ast/make.rs
index 35ec9b1013..0228d9dd71 100644
--- a/crates/syntax/src/ast/make.rs
+++ b/crates/syntax/src/ast/make.rs
@@ -179,18 +179,18 @@ pub fn ty_alias(
}
if let Some(list) = type_param_bounds {
- s.push_str(&format!(" : {}", &list));
+ s.push_str(&format!(" : {list}"));
}
if let Some(cl) = where_clause {
- s.push_str(&format!(" {}", &cl.to_string()));
+ s.push_str(&format!(" {cl}"));
}
if let Some(exp) = assignment {
if let Some(cl) = exp.1 {
- s.push_str(&format!(" = {} {}", &exp.0.to_string(), &cl.to_string()));
+ s.push_str(&format!(" = {} {cl}", exp.0));
} else {
- s.push_str(&format!(" = {}", &exp.0.to_string()));
+ s.push_str(&format!(" = {}", exp.0));
}
}