Skip to content

Commit 98deb0b

Browse files
authored
feat(interpreter): relax make_boxed_instruction_table::FN to FnMut (#1076)
1 parent 4ff9ac0 commit 98deb0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/interpreter/src/instructions/opcode.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ pub fn make_instruction_table<H: Host, SPEC: Spec>() -> InstructionTable<H> {
7676
/// Make boxed instruction table that calls `outer` closure for every instruction.
7777
pub fn make_boxed_instruction_table<'a, H, SPEC, FN>(
7878
table: InstructionTable<H>,
79-
outer: FN,
79+
mut outer: FN,
8080
) -> BoxedInstructionTable<'a, H>
8181
where
8282
H: Host,
8383
SPEC: Spec + 'static,
84-
FN: Fn(Instruction<H>) -> BoxedInstruction<'a, H>,
84+
FN: FnMut(Instruction<H>) -> BoxedInstruction<'a, H>,
8585
{
8686
core::array::from_fn(|i| outer(table[i]))
8787
}

0 commit comments

Comments
 (0)