From d280c72338313ed7d900a9dad05923d344b5fa86 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 22 Jan 2018 11:31:55 +0300 Subject: [PATCH] Simplify --- src/parser/event_parser/grammar/items.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/parser/event_parser/grammar/items.rs b/src/parser/event_parser/grammar/items.rs index 39295edf6c..2e0aa3043b 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) { if !p.expect(L_PAREN) { return; } - loop { - if p.at(R_PAREN) || p.at(EOF) { - break; - } - + while !(p.at(R_PAREN) || p.at(EOF)) { let pos_field = p.start(); visibility(p); types::type_ref(p);