From cf9f0039911597cd5c9bc8e98f61b5df09b02130 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 11 Aug 2022 15:23:45 +0200 Subject: Remove boxes around resolvers --- src/construct/heading_setext.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/construct/heading_setext.rs') diff --git a/src/construct/heading_setext.rs b/src/construct/heading_setext.rs index 3a24f9f..a3c513b 100644 --- a/src/construct/heading_setext.rs +++ b/src/construct/heading_setext.rs @@ -60,6 +60,7 @@ use crate::constant::TAB_SIZE; use crate::construct::partial_space_or_tab::{space_or_tab, space_or_tab_min_max}; use crate::event::{Kind, Name}; +use crate::resolve::Name as ResolveName; use crate::state::{Name as StateName, State}; use crate::tokenizer::Tokenizer; use crate::util::skip::opt_back as skip_opt_back; @@ -160,7 +161,7 @@ pub fn after(tokenizer: &mut Tokenizer) -> State { None | Some(b'\n') => { // Feel free to interrupt. tokenizer.interrupt = false; - tokenizer.register_resolver("heading_setext".to_string(), Box::new(resolve)); + tokenizer.register_resolver(ResolveName::HeadingSetext); State::Ok } _ => State::Nok, -- cgit