Skip to content

Commit 656fb2d

Browse files
committed
style: clippy + fmt
1 parent af5e1cc commit 656fb2d

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

crates/evm/evm/src/inspectors/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ mod stack;
2020
pub use stack::{InspectorData, InspectorStack, InspectorStackBuilder};
2121

2222
mod revert_diagnostic;
23+
pub use revert_diagnostic::RevertDiagnostic;

crates/evm/evm/src/inspectors/stack.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use super::{
2-
revert_diagnostic::RevertDiagnostic, Cheatcodes, CheatsConfig, ChiselState, CoverageCollector,
3-
Fuzzer, LogCollector, ScriptExecutionInspector, TracingInspector,
2+
Cheatcodes, CheatsConfig, ChiselState, CoverageCollector, Fuzzer, LogCollector,
3+
RevertDiagnostic, ScriptExecutionInspector, TracingInspector,
44
};
55
use alloy_primitives::{map::AddressHashMap, Address, Bytes, Log, TxKind, U256};
66
use foundry_cheatcodes::{CheatcodesExecutor, Wallets};

crates/forge/tests/cli/test_cmd.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,6 @@ Traces:
15551555
├─ [0] VM::resumeGasMetering()
15561556
│ └─ ← [Return]
15571557
└─ ← [Stop]
1558-
15591558
...
15601559
"#]]);
15611560
});

crates/script/src/execute.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -398,11 +398,7 @@ impl PreSimulationState {
398398
if !self.execution_result.success {
399399
return Err(eyre::eyre!(
400400
"script failed: {}",
401-
&self
402-
.execution_artifacts
403-
.decoder
404-
.revert_decoder
405-
.decode(&result.returned[..], None,)
401+
&self.execution_artifacts.decoder.revert_decoder.decode(&result.returned[..], None)
406402
));
407403
}
408404

0 commit comments

Comments
 (0)