diff options
Diffstat (limited to '')
-rw-r--r-- | src/content/string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/string.rs b/src/content/string.rs index a8a81b2..1239a36 100644 --- a/src/content/string.rs +++ b/src/content/string.rs @@ -18,7 +18,7 @@ use crate::tokenizer::{Code, Event, State, StateFnResult, TokenType, Tokenizer}; /// Turn `codes` as the string content type into events. // To do: remove this `allow` when all the content types are glued together. #[allow(dead_code)] -pub fn string(codes: Vec<Code>) -> Vec<Event> { +pub fn string(codes: &[Code]) -> Vec<Event> { let mut tokenizer = Tokenizer::new(); let (state, remainder) = tokenizer.feed(codes, Box::new(before), true); |