Skip to content

Commit 71b8886

Browse files
authored
chore: remove unused Add import in state_snapshot.rs (#12305)
Update state_snapshot.rs
1 parent fe2041b commit 71b8886

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/evm/core/src/state_snapshot.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Support for snapshotting different states
22
33
use alloy_primitives::{U256, map::HashMap};
4-
use std::ops::Add;
54

65
/// Represents all state snapshots
76
#[derive(Clone, Debug)]
@@ -30,7 +29,7 @@ impl<T> StateSnapshots<T> {
3029
let snapshot_state = self.state_snapshots.remove(&id);
3130

3231
// Revert all state snapshots taken after the state snapshot with the `id`
33-
let mut to_revert = id.add(U256::from(1));
32+
let mut to_revert = id + U256::from(1);
3433
while to_revert < self.id {
3534
self.state_snapshots.remove(&to_revert);
3635
to_revert += U256::from(1);

0 commit comments

Comments
 (0)