Skip to content

Commit 82a8774

Browse files
committed
Avoid format! in favor of to_string
1 parent 73e91dd commit 82a8774

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/syntax/src/ast/make.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ pub mod ext {
8989
}
9090

9191
pub fn ty_name(name: ast::Name) -> ast::Type {
92-
ty_path(ident_path(&format!("{name}")))
92+
ty_path(ident_path(&name.to_string()))
9393
}
9494
pub fn ty_bool() -> ast::Type {
9595
ty_path(ident_path("bool"))

0 commit comments

Comments
 (0)