Skip to content

Commit 39cc275

Browse files
committed
Ignore warnings
1 parent 735baa3 commit 39cc275

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/helpers/operand.rs

+1
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ mod tests {
330330

331331
assert_eq!(instruction.op_count(), expected.len() as u32, "Expected {} operands, got {}", expected.len(), instruction.op_count());
332332

333+
#[allow(clippy::redundant_closure_call)]
333334
$setup(&mut axecutor);
334335

335336
for i in 0..expected.len() {

src/helpers/tests.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ macro_rules! jmp_test {
392392
let bytes = code_with_nops!($($bytes_start),*; $count; $($bytes_end),*);
393393

394394
let mut ax = Axecutor::new(&bytes, $initial_rip, $initial_rip).expect("Failed to create axecutor");
395+
#[allow(clippy::redundant_closure_call)]
395396
$setup(&mut ax);
396397

397398
assert_reg_value!(q; ax; RIP; $initial_rip);
@@ -404,6 +405,7 @@ macro_rules! jmp_test {
404405

405406
let flags = ax.state.rflags;
406407

408+
#[allow(clippy::redundant_closure_call)]
407409
$asserts(ax);
408410

409411
// Check flags
@@ -442,6 +444,7 @@ macro_rules! jmp_test {
442444
let bytes = code_with_nops!($($bytes_start),*; $count; $($bytes_end),*);
443445

444446
let mut ax = Axecutor::new(&bytes, $initial_rip, $initial_rip).expect("Failed to create axecutor");
447+
#[allow(clippy::redundant_closure_call)]
445448
$setup(&mut ax);
446449

447450
assert_reg_value!(q; ax; RIP; $initial_rip);
@@ -453,7 +456,7 @@ macro_rules! jmp_test {
453456
assert_reg_value!(q; ax; RIP; $final_rip);
454457

455458
let flags = ax.state.rflags;
456-
459+
#[allow(clippy::redundant_closure_call)]
457460
$asserts(ax);
458461

459462
// Check flags

0 commit comments

Comments
 (0)