diff options
author | kjeremy <[email protected]> | 2019-09-20 16:49:45 +0100 |
---|---|---|
committer | kjeremy <[email protected]> | 2019-09-20 16:49:45 +0100 |
commit | 17a45a686c42522ffb668b1989d58219f76caf51 (patch) | |
tree | 4392084cb486234a8e52a0b47dfb42045bb10af5 /crates | |
parent | 5a65d4d9fb84c324e8364f4d89adae258d5a1789 (diff) |
Apply suggestion
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_parser/src/grammar/patterns.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/ra_parser/src/grammar/patterns.rs b/crates/ra_parser/src/grammar/patterns.rs index cf722eef4..877ae5b7a 100644 --- a/crates/ra_parser/src/grammar/patterns.rs +++ b/crates/ra_parser/src/grammar/patterns.rs | |||
@@ -196,9 +196,8 @@ fn record_field_pat(p: &mut Parser) { | |||
196 | 196 | ||
197 | let m = p.start(); | 197 | let m = p.start(); |
198 | 198 | ||
199 | match p.current() { | 199 | if !p.eat(INT_NUMBER) { |
200 | IDENT => name(p), | 200 | name(p) |
201 | _ => p.bump_any(), | ||
202 | } | 201 | } |
203 | 202 | ||
204 | p.bump_any(); | 203 | p.bump_any(); |