aboutsummaryrefslogtreecommitdiffstats
path: root/src/content
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-25 15:29:11 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-25 15:29:11 +0200
commit11304728b6607bc2a8d41a640308f3379a25b933 (patch)
treec49fb64a64e1c39b889a40f48dcd44f87aaea7b1 /src/content
parent9c18ff7858730f0c7782206129375c7efcb7d77f (diff)
downloadmarkdown-rs-11304728b6607bc2a8d41a640308f3379a25b933.tar.gz
markdown-rs-11304728b6607bc2a8d41a640308f3379a25b933.tar.bz2
markdown-rs-11304728b6607bc2a8d41a640308f3379a25b933.zip
Improve performance w/ a single feed loop
Diffstat (limited to 'src/content')
-rw-r--r--src/content/document.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/document.rs b/src/content/document.rs
index c1017a7..f8d7b55 100644
--- a/src/content/document.rs
+++ b/src/content/document.rs
@@ -78,7 +78,7 @@ struct DocumentInfo {
pub fn document(parse_state: &mut ParseState, point: Point) -> Vec<Event> {
let mut tokenizer = Tokenizer::new(point, parse_state);
- tokenizer.push(&parse_state.codes, Box::new(start), true);
+ tokenizer.push(parse_state.codes.clone(), Box::new(start), true);
let mut index = 0;
let mut definitions = vec![];