diff options
author | Aleksey Kladov <[email protected]> | 2018-07-31 13:40:40 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-07-31 13:40:40 +0100 |
commit | 9ce7e8110254e8db476c96bce2eecb2d16983159 (patch) | |
tree | abaddbafc4593948849394b430e3bde5c624fa22 /src/parser/grammar/patterns.rs | |
parent | 2a2815266b35de12bd3c48cc405e8b3e8fcf8885 (diff) |
cleanups
Diffstat (limited to 'src/parser/grammar/patterns.rs')
-rw-r--r-- | src/parser/grammar/patterns.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/parser/grammar/patterns.rs b/src/parser/grammar/patterns.rs index a5d13a124..7216807fd 100644 --- a/src/parser/grammar/patterns.rs +++ b/src/parser/grammar/patterns.rs | |||
@@ -43,11 +43,8 @@ fn ref_pat(p: &mut Parser) { | |||
43 | // } | 43 | // } |
44 | fn bind_pat(p: &mut Parser) { | 44 | fn bind_pat(p: &mut Parser) { |
45 | let m = p.start(); | 45 | let m = p.start(); |
46 | if p.eat(REF_KW) { | 46 | p.eat(REF_KW); |
47 | p.eat(MUT_KW); | 47 | p.eat(MUT_KW); |
48 | } else { | ||
49 | p.eat(MUT_KW); | ||
50 | } | ||
51 | name(p); | 48 | name(p); |
52 | if p.eat(AT) { | 49 | if p.eat(AT) { |
53 | pattern(p); | 50 | pattern(p); |