diff options
author | pcpthm <[email protected]> | 2019-03-18 04:03:04 +0000 |
---|---|---|
committer | pcpthm <[email protected]> | 2019-03-18 04:14:47 +0000 |
commit | 3d9c2beb8e0d4e0fbaded7dac259cadf7616a3ad (patch) | |
tree | d0d7a91f282537c3294f3b5b3a283dfd5faaa1a6 /crates/ra_parser/src/grammar/expressions.rs | |
parent | e5702675155a5db137af65cf9d62cba4a6cea6c0 (diff) |
Apply stylistic changes suggested
Diffstat (limited to 'crates/ra_parser/src/grammar/expressions.rs')
-rw-r--r-- | crates/ra_parser/src/grammar/expressions.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_parser/src/grammar/expressions.rs b/crates/ra_parser/src/grammar/expressions.rs index 9839846f1..6d3e379a3 100644 --- a/crates/ra_parser/src/grammar/expressions.rs +++ b/crates/ra_parser/src/grammar/expressions.rs | |||
@@ -54,7 +54,7 @@ pub(crate) fn expr_block_contents(p: &mut Parser) { | |||
54 | 54 | ||
55 | // test block_items | 55 | // test block_items |
56 | // fn a() { fn b() {} } | 56 | // fn a() { fn b() {} } |
57 | let mut m = p.start(); | 57 | let m = p.start(); |
58 | let has_attrs = p.at(POUND); | 58 | let has_attrs = p.at(POUND); |
59 | attributes::outer_attributes(p); | 59 | attributes::outer_attributes(p); |
60 | if p.at(LET_KW) { | 60 | if p.at(LET_KW) { |
@@ -62,9 +62,9 @@ pub(crate) fn expr_block_contents(p: &mut Parser) { | |||
62 | continue; | 62 | continue; |
63 | } | 63 | } |
64 | 64 | ||
65 | m = match items::maybe_item(p, m, items::ItemFlavor::Mod) { | 65 | let m = match items::maybe_item(p, m, items::ItemFlavor::Mod) { |
66 | Some(m) => m, | 66 | Ok(()) => continue, |
67 | None => continue, | 67 | Err(m) => m, |
68 | }; | 68 | }; |
69 | 69 | ||
70 | // test pub_expr | 70 | // test pub_expr |