diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-07-25 15:52:35 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-07-25 15:52:35 +0200 |
commit | ca56f2742d8719358d2046fbdee4f1087add0568 (patch) | |
tree | 702d3ff3ab6ad432bdff59990b7b4211da57afda /src/content/document.rs | |
parent | 11304728b6607bc2a8d41a640308f3379a25b933 (diff) | |
download | markdown-rs-ca56f2742d8719358d2046fbdee4f1087add0568.tar.gz markdown-rs-ca56f2742d8719358d2046fbdee4f1087add0568.tar.bz2 markdown-rs-ca56f2742d8719358d2046fbdee4f1087add0568.zip |
Refactor to remove need for cloning codes
Diffstat (limited to '')
-rw-r--r-- | src/content/document.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/document.rs b/src/content/document.rs index f8d7b55..29aaa84 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.clone(), Box::new(start), true); + tokenizer.push(0, parse_state.codes.len(), Box::new(start), true); let mut index = 0; let mut definitions = vec![]; |