From b32f05b3fbb8503192bc43fb503b08fce4ac67b6 Mon Sep 17 00:00:00 2001 From: Tatsuya Kawano Date: Sat, 27 Jan 2024 18:13:35 +0800 Subject: [PATCH] Apply rustfmt --- src/future/base_cache.rs | 4 +++- src/sync_base/base_cache.rs | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/future/base_cache.rs b/src/future/base_cache.rs index f1c16d1e..cf1a633a 100644 --- a/src/future/base_cache.rs +++ b/src/future/base_cache.rs @@ -1759,7 +1759,9 @@ where candidate.add_frequency(freq, kh.hash); Self::admit(&candidate, &self.cache, deqs, freq) } - EvictionPolicy::Lru => AdmissionResult::Admitted { victim_keys: SmallVec::default() }, + EvictionPolicy::Lru => AdmissionResult::Admitted { + victim_keys: SmallVec::default(), + }, }; match admission_result { diff --git a/src/sync_base/base_cache.rs b/src/sync_base/base_cache.rs index 75b73cab..ca602def 100644 --- a/src/sync_base/base_cache.rs +++ b/src/sync_base/base_cache.rs @@ -1571,7 +1571,9 @@ where candidate.add_frequency(freq, kh.hash); Self::admit(&candidate, &self.cache, deqs, freq) } - EvictionPolicy::Lru => AdmissionResult::Admitted { victim_keys: SmallVec::default() }, + EvictionPolicy::Lru => AdmissionResult::Admitted { + victim_keys: SmallVec::default(), + }, }; match admission_result {