From 6dc2011d69c85820feddf6799142d304cc2eeb29 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 12 Aug 2022 17:28:19 +0200 Subject: Refactor to improve entering --- src/content/document.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/content/document.rs') diff --git a/src/content/document.rs b/src/content/document.rs index 59e6e7c..41d60e2 100644 --- a/src/content/document.rs +++ b/src/content/document.rs @@ -281,13 +281,13 @@ pub fn containers_after(tokenizer: &mut Tokenizer) -> State { tokenizer.events[previous].link.as_mut().unwrap().next = Some(current); } tokenizer.tokenize_state.document_data_index = Some(current); - tokenizer.enter_with_link( + tokenizer.enter_link( Name::Data, - Some(Link { + Link { previous, next: None, - content_type: Content::Flow, - }), + content: Content::Flow, + }, ); State::Retry(StateName::DocumentFlowInside) } -- cgit