diff options
author | Aleksey Kladov <[email protected]> | 2018-01-15 19:41:57 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-01-15 19:41:57 +0000 |
commit | 3c612bfa3a86675ef18b1effcc76037cb6b9fddf (patch) | |
tree | e70e7351f498958606e77c24c9805f50ed873642 /src/parser/event_parser/grammar | |
parent | 91fb7e208863eb712654367c0793f010e118a918 (diff) |
Simplify
Diffstat (limited to 'src/parser/event_parser/grammar')
-rw-r--r-- | src/parser/event_parser/grammar/items.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/parser/event_parser/grammar/items.rs b/src/parser/event_parser/grammar/items.rs index d2bfeac97..5b0180b81 100644 --- a/src/parser/event_parser/grammar/items.rs +++ b/src/parser/event_parser/grammar/items.rs | |||
@@ -49,9 +49,7 @@ fn item(p: &mut Parser) -> bool { | |||
49 | || node_if(p, STRUCT_KW, STRUCT_ITEM, struct_item) | 49 | || node_if(p, STRUCT_KW, STRUCT_ITEM, struct_item) |
50 | || node_if(p, FN_KW, FN_ITEM, fn_item); | 50 | || node_if(p, FN_KW, FN_ITEM, fn_item); |
51 | 51 | ||
52 | if item_parsed && attrs_start != item_start { | 52 | p.forward_parent(attrs_start, item_start); |
53 | p.forward_parent(attrs_start, item_start); | ||
54 | } | ||
55 | item_parsed | 53 | item_parsed |
56 | } | 54 | } |
57 | 55 | ||