aboutsummaryrefslogtreecommitdiffstats
path: root/src/tokenizer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tokenizer.rs')
-rw-r--r--src/tokenizer.rs4
1 files changed, 1 insertions, 3 deletions
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<Code>,
+ mut codes: Vec<Code>,
done: impl FnOnce((Vec<Code>, Vec<Code>), bool, &mut Tokenizer) -> StateFnResult + 'static,
) -> Box<StateFn> {
Box::new(|tokenizer, code| {
- let mut codes = codes;
-
let (next, remainder) = check_statefn_result(state(tokenizer, code));
match code {