From ca56f2742d8719358d2046fbdee4f1087add0568 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 25 Jul 2022 15:52:35 +0200 Subject: Refactor to remove need for cloning codes --- src/content/document.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/content') 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 { 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![]; -- cgit