diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-08-11 15:23:45 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-08-11 15:23:45 +0200 |
commit | cf9f0039911597cd5c9bc8e98f61b5df09b02130 (patch) | |
tree | 43fcec13b338fd64b800df1f72c8cec01adc8581 /src/construct/label_start_link.rs | |
parent | d87dc75500a2e73d9521135054b42c18e6eae987 (diff) | |
download | markdown-rs-cf9f0039911597cd5c9bc8e98f61b5df09b02130.tar.gz markdown-rs-cf9f0039911597cd5c9bc8e98f61b5df09b02130.tar.bz2 markdown-rs-cf9f0039911597cd5c9bc8e98f61b5df09b02130.zip |
Remove boxes around resolvers
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 456a4e9..530d83e 100644 --- a/src/construct/label_start_link.rs +++ b/src/construct/label_start_link.rs @@ -27,8 +27,8 @@ //! [label_end]: crate::construct::label_end //! [html-a]: https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-a-element -use super::label_end::resolve_media; use crate::event::Name; +use crate::resolve::Name as ResolveName; use crate::state::State; use crate::tokenizer::{LabelStart, Tokenizer}; @@ -52,7 +52,7 @@ pub fn start(tokenizer: &mut Tokenizer) -> State { balanced: false, inactive: false, }); - tokenizer.register_resolver_before("media".to_string(), Box::new(resolve_media)); + tokenizer.register_resolver_before(ResolveName::Label); State::Ok } _ => State::Nok, |