diff --git a/tests/tests/callbacks.rs b/tests/tests/callbacks.rs index fecbd619..74deef5f 100644 --- a/tests/tests/callbacks.rs +++ b/tests/tests/callbacks.rs @@ -220,16 +220,9 @@ mod return_result_skip { mod skip_callback_function { use super::*; - #[derive(Debug, Default, PartialEq, Clone)] - enum LexerError { - #[default] - Other, - } - #[derive(Logos, Debug, PartialEq)] #[logos(skip r"[ \t\n\f]+")] #[logos(skip("") + .map(|id| id + 3) .unwrap_or(lexer.remainder().len()); - lexer.bump(end + 3); + lexer.bump(end); } #[test] @@ -252,7 +246,6 @@ mod skip_callback_function { let mut lexer = Token::lexer("