@@ -355,6 +355,7 @@ impl InspectorStack {
355
355
356
356
impl < DB : DatabaseExt > Inspector < DB > for InspectorStack {
357
357
fn initialize_interp ( & mut self , interpreter : & mut Interpreter < ' _ > , data : & mut EVMData < ' _ , DB > ) {
358
+ let res = interpreter. instruction_result ;
358
359
call_inspectors ! (
359
360
[
360
361
& mut self . debugger,
@@ -368,7 +369,7 @@ impl<DB: DatabaseExt> Inspector<DB> for InspectorStack {
368
369
inspector. initialize_interp( interpreter, data) ;
369
370
370
371
// Allow inspectors to exit early
371
- if interpreter. instruction_result != InstructionResult :: Continue {
372
+ if interpreter. instruction_result != res {
372
373
#[ allow( clippy:: needless_return) ]
373
374
return
374
375
}
@@ -377,6 +378,7 @@ impl<DB: DatabaseExt> Inspector<DB> for InspectorStack {
377
378
}
378
379
379
380
fn step ( & mut self , interpreter : & mut Interpreter < ' _ > , data : & mut EVMData < ' _ , DB > ) {
381
+ let res = interpreter. instruction_result ;
380
382
call_inspectors ! (
381
383
[
382
384
& mut self . fuzzer,
@@ -391,7 +393,7 @@ impl<DB: DatabaseExt> Inspector<DB> for InspectorStack {
391
393
inspector. step( interpreter, data) ;
392
394
393
395
// Allow inspectors to exit early
394
- if interpreter. instruction_result != InstructionResult :: Continue {
396
+ if interpreter. instruction_result != res {
395
397
#[ allow( clippy:: needless_return) ]
396
398
return
397
399
}
@@ -415,6 +417,7 @@ impl<DB: DatabaseExt> Inspector<DB> for InspectorStack {
415
417
}
416
418
417
419
fn step_end ( & mut self , interpreter : & mut Interpreter < ' _ > , data : & mut EVMData < ' _ , DB > ) {
420
+ let res = interpreter. instruction_result ;
418
421
call_inspectors ! (
419
422
[
420
423
& mut self . debugger,
@@ -428,7 +431,7 @@ impl<DB: DatabaseExt> Inspector<DB> for InspectorStack {
428
431
inspector. step_end( interpreter, data) ;
429
432
430
433
// Allow inspectors to exit early
431
- if interpreter. instruction_result != InstructionResult :: Continue {
434
+ if interpreter. instruction_result != res {
432
435
#[ allow( clippy:: needless_return) ]
433
436
return
434
437
}
0 commit comments