From 481129f5c9d074899901c97b585cf6e13fe43474 Mon Sep 17 00:00:00 2001 From: Robin Freyler Date: Mon, 27 Feb 2023 13:45:18 +0100 Subject: [PATCH] apply clippy suggestions or silence warnings --- crates/wasmi/src/engine/executor.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/wasmi/src/engine/executor.rs b/crates/wasmi/src/engine/executor.rs index e78d4ce32c..e2cc09a059 100644 --- a/crates/wasmi/src/engine/executor.rs +++ b/crates/wasmi/src/engine/executor.rs @@ -286,6 +286,7 @@ fn try_execute_binary( /// the function call so that the stack and execution state is synchronized /// with the outer structures. #[inline(always)] +#[allow(clippy::too_many_arguments)] fn call_func( ip: &mut InstructionPtr, sp: &mut ValueStackPtr, @@ -427,6 +428,7 @@ impl<'ctx, 'engine> Executor<'ctx, 'engine> { /// Executes the function frame until it returns or traps. #[inline(always)] fn execute(mut self) -> Result { + use Instruction as Instr; let Self { sp, ip, @@ -436,7 +438,6 @@ impl<'ctx, 'engine> Executor<'ctx, 'engine> { call_stack, code_map, } = &mut self; - use Instruction as Instr; loop { match *ip.get() { Instr::LocalGet { local_depth } => visit_local_get(ip, sp, local_depth), @@ -798,6 +799,7 @@ fn visit_global_set( } #[inline(always)] +#[allow(clippy::too_many_arguments)] fn visit_call( ip: &mut InstructionPtr, sp: &mut ValueStackPtr, @@ -822,6 +824,7 @@ fn visit_call( } #[inline(always)] +#[allow(clippy::too_many_arguments)] fn visit_call_indirect( ip: &mut InstructionPtr, sp: &mut ValueStackPtr,