Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/parser/src/parser.rs')
| -rw-r--r-- | crates/parser/src/parser.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/parser/src/parser.rs b/crates/parser/src/parser.rs index 1f9961bb92..89dfea52f8 100644 --- a/crates/parser/src/parser.rs +++ b/crates/parser/src/parser.rs @@ -177,7 +177,7 @@ impl<'t> Parser<'t> { if kind == EOF { return; } - self.do_bump(kind, 1) + self.do_bump(kind, 1); } /// Advances the parser by one token, remapping its kind. @@ -200,7 +200,7 @@ impl<'t> Parser<'t> { /// does. pub(crate) fn error<T: Into<String>>(&mut self, message: T) { let msg = ParseError(Box::new(message.into())); - self.push_event(Event::Error { msg }) + self.push_event(Event::Error { msg }); } /// Consume the next token if it is `kind` or emit an error @@ -258,7 +258,7 @@ impl<'t> Parser<'t> { } fn push_event(&mut self, event: Event) { - self.events.push(event) + self.events.push(event); } } |