mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Avoid format! in favor of to_string
This commit is contained in:
parent
73e91dda50
commit
82a8774a08
1 changed files with 1 additions and 1 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue