Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
fgimenez committed Jan 29, 2025
1 parent b59f7da commit 83b4cbd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/engine/tree/src/tree/cached_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,7 @@ impl ProviderCaches {
key: StorageKey,
value: Option<StorageValue>,
) {
let account_cache =
self.storage_cache.get(&address).unwrap_or_else(|| AccountStorageCache::default());
let account_cache = self.storage_cache.get(&address).unwrap_or_default();

account_cache.insert_storage(key, value);

Expand Down

0 comments on commit 83b4cbd

Please sign in to comment.