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/tokenizer.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/tokenizer.rs') diff --git a/src/tokenizer.rs b/src/tokenizer.rs index f76a0f8..7b71308 100644 --- a/src/tokenizer.rs +++ b/src/tokenizer.rs @@ -1651,12 +1651,10 @@ impl Tokenizer { /// Used in [`Tokenizer::attempt`][Tokenizer::attempt] and [`Tokenizer::check`][Tokenizer::check]. fn attempt_impl( state: impl FnOnce(&mut Tokenizer, Code) -> StateFnResult + 'static, - codes: Vec, + mut codes: Vec, done: impl FnOnce((Vec, Vec), bool, &mut Tokenizer) -> StateFnResult + 'static, ) -> Box { Box::new(|tokenizer, code| { - let mut codes = codes; - let (next, remainder) = check_statefn_result(state(tokenizer, code)); match code { -- cgit