From f126b47f89c8ef3839c3d64657e9f220d1cbd268 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 19 Jul 2022 11:55:50 +0200 Subject: Remove an unneeded `HashMap` --- src/content/document.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/content/document.rs') diff --git a/src/content/document.rs b/src/content/document.rs index d2c2426..63c2476 100644 --- a/src/content/document.rs +++ b/src/content/document.rs @@ -356,7 +356,7 @@ fn containers_after( tokenizer.lazy = info.continued != info.stack.len(); tokenizer.interrupt = info.interrupt_before; - tokenizer.define_skip(tokenizer.point.clone(), tokenizer.index); + tokenizer.define_skip_current(); let state = info.next; info.next = Box::new(flow); @@ -437,7 +437,7 @@ fn exit_containers( // So, we’re at the end of a line, but we need to close the *previous* line. if *phase != Phase::Eof { - tokenizer.define_skip(tokenizer.point.clone(), tokenizer.index); + tokenizer.define_skip_current(); let mut current_events = tokenizer.events.drain(info.index..).collect::>(); let next = info.next; info.next = Box::new(flow); // This is weird but Rust needs a function there. -- cgit