diff options
author | DJMcNab <[email protected]> | 2018-12-19 19:35:14 +0000 |
---|---|---|
committer | DJMcNab <[email protected]> | 2018-12-19 20:12:18 +0000 |
commit | 4dce66ad319cbcbfae5f9e941b80c28cf546590c (patch) | |
tree | 8e73faaa234470df5c88ea8ad8d4a3ed6e5d74f7 /crates/ra_syntax/src | |
parent | cd8e33fb7e60d78809da5e77c968ef30433c2317 (diff) |
Fix handling of structs in match arms
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r-- | crates/ra_syntax/src/grammar/expressions/atom.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/grammar/expressions/atom.rs b/crates/ra_syntax/src/grammar/expressions/atom.rs index 04087fd60..452e91485 100644 --- a/crates/ra_syntax/src/grammar/expressions/atom.rs +++ b/crates/ra_syntax/src/grammar/expressions/atom.rs | |||
@@ -362,7 +362,7 @@ fn match_arm(p: &mut Parser) -> BlockLike { | |||
362 | patterns::pattern(p); | 362 | patterns::pattern(p); |
363 | } | 363 | } |
364 | if p.eat(IF_KW) { | 364 | if p.eat(IF_KW) { |
365 | expr_no_struct(p); | 365 | expr(p); |
366 | } | 366 | } |
367 | p.expect(FAT_ARROW); | 367 | p.expect(FAT_ARROW); |
368 | let ret = expr_stmt(p); | 368 | let ret = expr_stmt(p); |