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.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/syntax/src/ast/make.rs b/crates/syntax/src/ast/make.rs index 819d53982f..b01befebea 100644 --- a/crates/syntax/src/ast/make.rs +++ b/crates/syntax/src/ast/make.rs @@ -556,7 +556,7 @@ pub fn param(pat: ast::Pat, ty: ast::Type) -> ast::Param { } pub fn self_param() -> ast::SelfParam { - ast_from_text(&format!("fn f(&self) {{ }}")) + ast_from_text("fn f(&self) { }") } pub fn ret_type(ty: ast::Type) -> ast::RetType { |