Skip to content

Commit

Permalink
Changes after request: proper way to fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
grandizzy committed May 4, 2023
1 parent 651cd26 commit 0226461
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions evm/src/fuzz/invariant/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ impl InvariantFuzzError {
traces: &mut Traces,
) -> Result<Option<CounterExample>> {
let mut counterexample_sequence = vec![];
let _calls = match self.test_error {
let calls = match self.test_error {
// Don't use at the moment.
TestError::Abort(_) => return Ok(None),
TestError::Fail(_, ref _calls) => _calls,
TestError::Fail(_, ref calls) => calls,
};

if self.shrink {
let _calls = self.try_shrinking(_calls, &executor);
let _ = self.try_shrinking(calls, &executor);
} else {
trace!(target: "forge::test", "Shrinking disabled.");
}
Expand All @@ -112,7 +112,7 @@ impl InvariantFuzzError {
set_up_inner_replay(&mut executor, &self.inner_sequence);

// Replay each call from the sequence until we break the invariant.
for (sender, (addr, bytes)) in _calls.iter() {
for (sender, (addr, bytes)) in calls.iter() {
let call_result = executor
.call_raw_committing(*sender, *addr, bytes.0.clone(), 0.into())
.expect("bad call to evm");
Expand Down

0 comments on commit 0226461

Please sign in to comment.