Skip to content

Commit 588ef2a

Browse files
authored
Title: Simplify StateSnapshots::insert_at return contract (#12337)
Update state_snapshot.rs
1 parent 4b09f25 commit 588ef2a

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
@@ -60,9 +60,8 @@ impl<T> StateSnapshots<T> {
6060
/// Inserts the new state snapshot at the given `id`.
6161
///
6262
/// Does not auto-increment the next `id`.
63-
pub fn insert_at(&mut self, state_snapshot: T, id: U256) -> U256 {
63+
pub fn insert_at(&mut self, state_snapshot: T, id: U256) {
6464
self.state_snapshots.insert(id, state_snapshot);
65-
id
6665
}
6766
}
6867

0 commit comments

Comments
 (0)