diff options
Diffstat (limited to 'src/grammar/items')
-rw-r--r-- | src/grammar/items/structs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grammar/items/structs.rs b/src/grammar/items/structs.rs index 7ced542a4..67616eaad 100644 --- a/src/grammar/items/structs.rs +++ b/src/grammar/items/structs.rs | |||
@@ -49,7 +49,7 @@ pub(super) fn enum_item(p: &mut Parser) { | |||
49 | let var = p.start(); | 49 | let var = p.start(); |
50 | attributes::outer_attributes(p); | 50 | attributes::outer_attributes(p); |
51 | if p.at(IDENT) { | 51 | if p.at(IDENT) { |
52 | p.bump(); | 52 | name(p); |
53 | match p.current() { | 53 | match p.current() { |
54 | L_CURLY => named_fields(p), | 54 | L_CURLY => named_fields(p), |
55 | L_PAREN => pos_fields(p), | 55 | L_PAREN => pos_fields(p), |