Skip to content
Prev Previous commit
Next Next commit
fucking clippy
  • Loading branch information
mattsse committed Nov 10, 2023
commit be67149b6ba173e2a7c58aed0fa127cd34e66db4
4 changes: 4 additions & 0 deletions crates/evm/evm/src/inspectors/stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ impl<DB: DatabaseExt> Inspector<DB> for InspectorStack {

// Allow inspectors to exit early
if interpreter.instruction_result != InstructionResult::Continue {
#[allow(clippy::needless_return)]
return
}
}
Expand All @@ -391,6 +392,7 @@ impl<DB: DatabaseExt> Inspector<DB> for InspectorStack {

// Allow inspectors to exit early
if interpreter.instruction_result != InstructionResult::Continue {
#[allow(clippy::needless_return)]
return
}
}
Expand Down Expand Up @@ -427,6 +429,7 @@ impl<DB: DatabaseExt> Inspector<DB> for InspectorStack {

// Allow inspectors to exit early
if interpreter.instruction_result != InstructionResult::Continue {
#[allow(clippy::needless_return)]
return
}
}
Expand All @@ -452,6 +455,7 @@ impl<DB: DatabaseExt> Inspector<DB> for InspectorStack {
let (status, gas, retdata) = inspector.call(data, call);

// Allow inspectors to exit early
#[allow(clippy::needless_return)]
if status != InstructionResult::Continue {
return (status, gas, retdata)
}
Expand Down