From 11304728b6607bc2a8d41a640308f3379a25b933 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 25 Jul 2022 15:29:11 +0200 Subject: Improve performance w/ a single feed loop --- src/content/document.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/content/document.rs') 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 { 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![]; -- cgit