Skip to content

Commit

Permalink
chore: make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Vid201 committed Oct 6, 2023
1 parent d542ad2 commit ef21ccc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/uopool/src/memory/mempool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl Mempool for MemoryMempool {

self.user_operations_by_sender
.entry(uo.sender)
.or_insert_with(Default::default)
.or_default()
.insert(uo_hash);
self.user_operations.insert(uo_hash, uo);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ impl StorageAccess {

if kecc.starts_with(&addr_b) {
let k = keccak256(kecc.clone());
slots
.entry(entity.address)
.or_insert(HashSet::new())
.insert(k.into());
slots.entry(entity.address).or_default().insert(k.into());
}
}
}
Expand Down

0 comments on commit ef21ccc

Please sign in to comment.