Skip to content

Commit

Permalink
Ignore warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
xarantolus committed Mar 6, 2024
1 parent 735baa3 commit 39cc275
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/helpers/operand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
5 changes: 4 additions & 1 deletion src/helpers/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -404,6 +405,7 @@ macro_rules! jmp_test {

let flags = ax.state.rflags;

#[allow(clippy::redundant_closure_call)]
$asserts(ax);

// Check flags
Expand Down Expand Up @@ -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);
Expand All @@ -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
Expand Down

0 comments on commit 39cc275

Please sign in to comment.