From fc12bf172369d1d5546467ffeba6ae17e3ccd0ed Mon Sep 17 00:00:00 2001 From: peony Date: Sun, 3 Nov 2024 14:53:55 +0100 Subject: [PATCH] test --- lang/src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/src/parser.rs b/lang/src/parser.rs index 91de4b5..4718098 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()) }