From dee7046f7eefbaef1d8ab97517b14139fbf696ce Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 28 Jan 2018 14:58:01 +0300 Subject: Don't return SyntaxKind from bump --- src/parser/event_parser/grammar/paths.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/parser/event_parser/grammar/paths.rs') diff --git a/src/parser/event_parser/grammar/paths.rs b/src/parser/event_parser/grammar/paths.rs index 6c8a89f6c..a254ab05e 100644 --- a/src/parser/event_parser/grammar/paths.rs +++ b/src/parser/event_parser/grammar/paths.rs @@ -30,12 +30,8 @@ fn path_segment(p: &mut Parser, first: bool) { p.eat(COLONCOLON); } match p.current() { - IDENT | SELF_KW | SUPER_KW => { - p.bump(); - } - _ => { - p.error().message("expected identifier").emit(); - } + IDENT | SELF_KW | SUPER_KW => p.bump(), + _ => p.error().message("expected identifier").emit(), }; segment.complete(p, PATH_SEGMENT); } -- cgit v1.2.3