From af05141ad1a3850e273f2992fe3ceb85747f4d62 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 18 Jul 2022 13:31:00 +0200 Subject: Refactor to organize resolvers --- src/construct/list.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/construct/list.rs') diff --git a/src/construct/list.rs b/src/construct/list.rs index c2007e6..fce8f00 100644 --- a/src/construct/list.rs +++ b/src/construct/list.rs @@ -315,7 +315,7 @@ fn after(tokenizer: &mut Tokenizer, code: Code, blank: bool) -> StateFnResult { container.size = prefix; tokenizer.exit(Token::ListItemPrefix); - tokenizer.register_resolver_before("list_item".to_string(), Box::new(resolve)); + tokenizer.register_resolver_before("list_item".to_string(), Box::new(resolve_list_item)); (State::Ok, Some(vec![code])) } } @@ -381,7 +381,7 @@ fn nok(_tokenizer: &mut Tokenizer, _code: Code) -> StateFnResult { } /// Find adjacent list items with the same marker. -pub fn resolve(tokenizer: &mut Tokenizer) -> Vec { +pub fn resolve_list_item(tokenizer: &mut Tokenizer) -> Vec { let mut edit_map = EditMap::new(); let mut index = 0; let mut balance = 0; -- cgit