aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-01-22 08:31:55 +0000
committerAleksey Kladov <[email protected]>2018-01-22 08:31:55 +0000
commitd280c72338313ed7d900a9dad05923d344b5fa86 (patch)
tree573985054febfb6cc20ce3da1d8f6a50b93bd3dc
parent13c6a34354598484e480e6b31e23ed474ded9988 (diff)
Simplify
-rw-r--r--src/parser/event_parser/grammar/items.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/parser/event_parser/grammar/items.rs b/src/parser/event_parser/grammar/items.rs
index 39295edf6..2e0aa3043 100644
--- a/src/parser/event_parser/grammar/items.rs
+++ b/src/parser/event_parser/grammar/items.rs
@@ -127,11 +127,7 @@ fn pos_fields(p: &mut Parser) {
127 if !p.expect(L_PAREN) { 127 if !p.expect(L_PAREN) {
128 return; 128 return;
129 } 129 }
130 loop { 130 while !(p.at(R_PAREN) || p.at(EOF)) {
131 if p.at(R_PAREN) || p.at(EOF) {
132 break;
133 }
134
135 let pos_field = p.start(); 131 let pos_field = p.start();
136 visibility(p); 132 visibility(p);
137 types::type_ref(p); 133 types::type_ref(p);