diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-08-01 10:17:25 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-08-01 10:17:25 +0200 |
commit | 82221ba13d2a4ccd119f280aaa3cea9ca2c8fdaf (patch) | |
tree | 5a9fe3ad27ab001e613d6e50c1dd67041862ce3a /src/construct/label_end.rs | |
parent | 0eeff9148e327183e532752f46421a75506dd7a6 (diff) | |
download | markdown-rs-82221ba13d2a4ccd119f280aaa3cea9ca2c8fdaf.tar.gz markdown-rs-82221ba13d2a4ccd119f280aaa3cea9ca2c8fdaf.tar.bz2 markdown-rs-82221ba13d2a4ccd119f280aaa3cea9ca2c8fdaf.zip |
Refactor some states
Diffstat (limited to 'src/construct/label_end.rs')
-rw-r--r-- | src/construct/label_end.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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) |