From 344c3db875056d4aec509f24fb2dbeaf7e2a14b6 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 9 Jun 2022 14:28:59 +0200 Subject: Refactor to pass more slices around --- src/content/flow.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/content/flow.rs') diff --git a/src/content/flow.rs b/src/content/flow.rs index ac987e1..693ffb5 100644 --- a/src/content/flow.rs +++ b/src/content/flow.rs @@ -32,7 +32,7 @@ use crate::util::get_span; /// Turn `codes` as the flow content type into events. // To do: remove this `allow` when all the content types are glued together. #[allow(dead_code)] -pub fn flow(codes: Vec) -> Vec { +pub fn flow(codes: &[Code]) -> Vec { let mut tokenizer = Tokenizer::new(); let (state, remainder) = tokenizer.feed(codes, Box::new(start), true); -- cgit