From 39cc2752b664c6e5e407a174e9a24499d0e5fbe7 Mon Sep 17 00:00:00 2001 From: xarantolus Date: Wed, 6 Mar 2024 09:29:26 +0000 Subject: [PATCH] Ignore warnings --- src/helpers/operand.rs | 1 + src/helpers/tests.rs | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/helpers/operand.rs b/src/helpers/operand.rs index 2e919df..d9bcfdb 100644 --- a/src/helpers/operand.rs +++ b/src/helpers/operand.rs @@ -330,6 +330,7 @@ mod tests { assert_eq!(instruction.op_count(), expected.len() as u32, "Expected {} operands, got {}", expected.len(), instruction.op_count()); + #[allow(clippy::redundant_closure_call)] $setup(&mut axecutor); for i in 0..expected.len() { diff --git a/src/helpers/tests.rs b/src/helpers/tests.rs index 81cfe01..1c2e2f3 100644 --- a/src/helpers/tests.rs +++ b/src/helpers/tests.rs @@ -392,6 +392,7 @@ macro_rules! jmp_test { let bytes = code_with_nops!($($bytes_start),*; $count; $($bytes_end),*); let mut ax = Axecutor::new(&bytes, $initial_rip, $initial_rip).expect("Failed to create axecutor"); + #[allow(clippy::redundant_closure_call)] $setup(&mut ax); assert_reg_value!(q; ax; RIP; $initial_rip); @@ -404,6 +405,7 @@ macro_rules! jmp_test { let flags = ax.state.rflags; + #[allow(clippy::redundant_closure_call)] $asserts(ax); // Check flags @@ -442,6 +444,7 @@ macro_rules! jmp_test { let bytes = code_with_nops!($($bytes_start),*; $count; $($bytes_end),*); let mut ax = Axecutor::new(&bytes, $initial_rip, $initial_rip).expect("Failed to create axecutor"); + #[allow(clippy::redundant_closure_call)] $setup(&mut ax); assert_reg_value!(q; ax; RIP; $initial_rip); @@ -453,7 +456,7 @@ macro_rules! jmp_test { assert_reg_value!(q; ax; RIP; $final_rip); let flags = ax.state.rflags; - + #[allow(clippy::redundant_closure_call)] $asserts(ax); // Check flags