diff --git a/lang/src/parser.rs b/lang/src/parser.rs index 4718098..91de4b5 100644 --- a/lang/src/parser.rs +++ b/lang/src/parser.rs @@ -136,7 +136,7 @@ impl<'a, 'b> Parser<'a, 'b> { f } - fn next(&mut self) -> Token { + fn next(&mut self) -> Token { core::mem::replace(&mut self.token, self.lexer.eat()) }