Unnamed repository; edit this file 'description' to name the repository.
Avoid format! in favor of to_string
Laurențiu Nicola 2022-10-12
parent 73e91dd · commit 82a8774
-rw-r--r--crates/syntax/src/ast/make.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/syntax/src/ast/make.rs b/crates/syntax/src/ast/make.rs
index c9a21e12c0..4057a75e7c 100644
--- a/crates/syntax/src/ast/make.rs
+++ b/crates/syntax/src/ast/make.rs
@@ -89,7 +89,7 @@ pub mod ext {
}
pub fn ty_name(name: ast::Name) -> ast::Type {
- ty_path(ident_path(&format!("{name}")))
+ ty_path(ident_path(&name.to_string()))
}
pub fn ty_bool() -> ast::Type {
ty_path(ident_path("bool"))