From 84008b9a22bdf1af744c1b830241be33d14862ea Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 22 Jun 2022 15:24:18 +0200 Subject: Refactor some unneeded assignments --- src/subtokenize.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/subtokenize.rs') diff --git a/src/subtokenize.rs b/src/subtokenize.rs index 1702387..4ee2242 100644 --- a/src/subtokenize.rs +++ b/src/subtokenize.rs @@ -57,8 +57,7 @@ pub fn link(events: &mut [Event], index: usize) { /// Parse linked events. /// /// Supposed to be called repeatedly, returns `1: true` when done. -pub fn subtokenize(events: Vec, codes: &[Code]) -> (Vec, bool) { - let mut events = events; +pub fn subtokenize(mut events: Vec, codes: &[Code]) -> (Vec, bool) { let mut index = 0; // Map of first chunks to their tokenizer. let mut head_to_tokenizer: HashMap = HashMap::new(); -- cgit