aboutsummaryrefslogtreecommitdiffstats
path: root/src/content
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-19 11:55:50 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-19 12:35:16 +0200
commitf126b47f89c8ef3839c3d64657e9f220d1cbd268 (patch)
treef8560d79bc2efaf3adb5e1a91f76ca99889c09e3 /src/content
parented42e65627f3283f0e002490fbcb652649fd3afc (diff)
downloadmarkdown-rs-f126b47f89c8ef3839c3d64657e9f220d1cbd268.tar.gz
markdown-rs-f126b47f89c8ef3839c3d64657e9f220d1cbd268.tar.bz2
markdown-rs-f126b47f89c8ef3839c3d64657e9f220d1cbd268.zip
Remove an unneeded `HashMap`
Diffstat (limited to '')
-rw-r--r--src/content/document.rs4
1 files changed, 2 insertions, 2 deletions
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::<Vec<_>>();
let next = info.next;
info.next = Box::new(flow); // This is weird but Rust needs a function there.