Skip to content

Commit

Permalink
Apply rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuya6502 committed Nov 19, 2023
1 parent 419197d commit c4fee37
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/sync_base/base_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1541,14 +1541,12 @@ where
let kl = self.maybe_key_lock(&vic_key);
let _klg = &kl.as_ref().map(|kl| kl.lock());

if let Some((vic_key, vic_entry)) =
self.cache.remove_entry_if_and(
vic_hash,
|k| k == &vic_key,
|_, entry| entry.entry_info().entry_gen() == vic_gen,
|k, v| (k.clone(), v.clone()),
)
{
if let Some((vic_key, vic_entry)) = self.cache.remove_entry_if_and(
vic_hash,
|k| k == &vic_key,
|_, entry| entry.entry_info().entry_gen() == vic_gen,
|k, v| (k.clone(), v.clone()),
) {
if eviction_state.is_notifier_enabled() {
eviction_state.add_removed_entry(
vic_key,
Expand Down

0 comments on commit c4fee37

Please sign in to comment.