[Feature] Use initializer for Inspector reset
オープン
enhancement
- 主要言語
- Rust
- スター
- 83
- フォーク
- 106
- 平均マージ
- 36分
- マージ済み PR(30日)
- 2
説明
### Describe the feature you would like
we currently rely on clone and do a mandatory clone to store the initial state:
https://github.com/alloy-rs/evm/blob/1304499b4cde025b1aecae5579403d6391831e7f/crates/evm/src/tracing.rs#L43-L46
this does not work for non clone inspectors:
https://github.com/paradigmxyz/revm-inspectors/blob/eb6ed5965050e8723ccf1ec02b0b53f7f0005af5/src/tracing/js/mod.rs#L56-L57
instead we can introduce an `Init` generic that is
```
FnMut() -> E::Inspector
```
and by default
```
let fused = ins.clone();
let init = move || ins.clone();
```
### Additional context
_No response_
コントリビューションガイド
評価
この issue はまだ評価されていません。