diff options
Diffstat (limited to 'src/construct/label_start_link.rs')
-rw-r--r-- | src/construct/label_start_link.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/construct/label_start_link.rs b/src/construct/label_start_link.rs index e13cd77..d7ae1d6 100644 --- a/src/construct/label_start_link.rs +++ b/src/construct/label_start_link.rs @@ -29,7 +29,7 @@ use super::label_end::resolve_media; use crate::token::Token; -use crate::tokenizer::{Code, LabelStart, State, Tokenizer}; +use crate::tokenizer::{LabelStart, State, Tokenizer}; /// Start of label (link) start. /// @@ -39,7 +39,7 @@ use crate::tokenizer::{Code, LabelStart, State, Tokenizer}; /// ``` pub fn start(tokenizer: &mut Tokenizer) -> State { match tokenizer.current { - Code::Char('[') if tokenizer.parse_state.constructs.label_start_link => { + Some('[') if tokenizer.parse_state.constructs.label_start_link => { let start = tokenizer.events.len(); tokenizer.enter(Token::LabelLink); tokenizer.enter(Token::LabelMarker); |