From 91ec0bdaf47ff4a2cdc2040da0e91195c5b7aabf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Sun, 21 Jul 2024 18:22:50 +0200 Subject: [PATCH] Replace the SmallVec by a Vec --- milli/src/update/index_documents/cache.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/milli/src/update/index_documents/cache.rs b/milli/src/update/index_documents/cache.rs index 445ae8f11..104836ac4 100644 --- a/milli/src/update/index_documents/cache.rs +++ b/milli/src/update/index_documents/cache.rs @@ -295,8 +295,8 @@ impl ArcCache { (self.frequent_set.get_mut(k), evicted) } - pub fn push(&mut self, k: K, v: V) -> SmallVec<[(K, V); 2]> { - let mut evicted = SmallVec::new(); + pub fn push(&mut self, k: K, v: V) -> Vec<(K, V)> { + let mut evicted = Vec::new(); if self.frequent_set.contains(&k) { if let Some(evicted_entry) = self.frequent_set.push(k, v) {