From 82221ba13d2a4ccd119f280aaa3cea9ca2c8fdaf Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 1 Aug 2022 10:17:25 +0200 Subject: Refactor some states --- src/construct/label_end.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/construct/label_end.rs') diff --git a/src/construct/label_end.rs b/src/construct/label_end.rs index a1ec8d9..d3191a8 100644 --- a/src/construct/label_end.rs +++ b/src/construct/label_end.rs @@ -231,7 +231,6 @@ pub fn start(tokenizer: &mut Tokenizer) -> State { tokenizer.consume(); tokenizer.exit(Token::LabelMarker); tokenizer.exit(Token::LabelEnd); - return State::Fn(Box::new(move |t| after(t, info))); } } @@ -278,7 +277,7 @@ fn after(tokenizer: &mut Tokenizer, info: Info) -> State { } }) })(tokenizer), - // Shortcut reference: `[asd]`? + // Shortcut (`[asd]`) reference? _ => { if defined { ok(tokenizer, info) -- cgit