Avoid format! in favor of to_string

This commit is contained in:
Laurențiu Nicola 2022-10-12 17:01:54 +03:00
parent 73e91dda50
commit 82a8774a08

View file

@ -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"))