aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-10-26 16:04:26 +0100
committerGitHub <[email protected]>2019-10-26 16:04:26 +0100
commit2f7d1f10c1614d9448604da5c105b75c43cc6f2b (patch)
tree4ef8c23e7c60e55a74e81a880ae78b8c5bb55288 /crates/ra_syntax
parent65e3fc8e772219bd41e182e424c928700788032a (diff)
parent4ef9b8d17a75d3f68951f506ad390e1367c1b2ad (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')
-rw-r--r--crates/ra_syntax/src/ast/make.rs2
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
78pub fn record_pat(path: ast::Path, pats: impl Iterator<Item = ast::Pat>) -> ast::RecordPat { 78pub 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))