diff options
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r-- | crates/ra_syntax/src/ast/make.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/ast/make.rs b/crates/ra_syntax/src/ast/make.rs index 00422ea91..76dad9155 100644 --- a/crates/ra_syntax/src/ast/make.rs +++ b/crates/ra_syntax/src/ast/make.rs | |||
@@ -77,7 +77,7 @@ pub fn tuple_struct_pat( | |||
77 | 77 | ||
78 | pub fn record_pat(path: ast::Path, pats: impl Iterator<Item = ast::Pat>) -> ast::RecordPat { | 78 | pub fn record_pat(path: ast::Path, pats: impl Iterator<Item = ast::Pat>) -> ast::RecordPat { |
79 | let pats_str = pats.map(|p| p.syntax().to_string()).join(", "); | 79 | let pats_str = pats.map(|p| p.syntax().to_string()).join(", "); |
80 | return from_text(&format!("{}{{ {} }}", path.syntax(), pats_str)); | 80 | return from_text(&format!("{} {{ {} }}", path.syntax(), pats_str)); |
81 | 81 | ||
82 | fn from_text(text: &str) -> ast::RecordPat { | 82 | fn from_text(text: &str) -> ast::RecordPat { |
83 | ast_from_text(&format!("fn f({}: ())", text)) | 83 | ast_from_text(&format!("fn f({}: ())", text)) |