diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-10-26 16:04:26 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-10-26 16:04:26 +0100 |
commit | 2f7d1f10c1614d9448604da5c105b75c43cc6f2b (patch) | |
tree | 4ef8c23e7c60e55a74e81a880ae78b8c5bb55288 /crates/ra_syntax/src/ast | |
parent | 65e3fc8e772219bd41e182e424c928700788032a (diff) | |
parent | 4ef9b8d17a75d3f68951f506ad390e1367c1b2ad (diff) |
Merge #2076
2076: use correct spacing for enum pattern r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
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)) |