make eat_assert faster

This commit is contained in:
TcMits
2025-08-15 14:36:39 +07:00
parent 9cec83f20b
commit fb5203ce45

View File

@@ -43,7 +43,7 @@ macro_rules! peek_expect {
macro_rules! eat_assert {
( $parser:expr, $( $x:ident ),* $(,)?) => {
{
let token = $parser.eat_no_eof()?;
let token = $parser.eat().unwrap().unwrap();
#[cfg(debug_assertions)]
match token.token_type.unwrap() {