From d2411570840ca1568e691aeb7225165d1b9d5180 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Tue, 7 Oct 2025 14:37:38 +0200 Subject: [PATCH] Make Clippy happy --- crates/index-scheduler/src/index_mapper/index_map.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/index-scheduler/src/index_mapper/index_map.rs b/crates/index-scheduler/src/index_mapper/index_map.rs index 6b6b0a9e7..a4c83e90b 100644 --- a/crates/index-scheduler/src/index_mapper/index_map.rs +++ b/crates/index-scheduler/src/index_mapper/index_map.rs @@ -221,9 +221,7 @@ impl IndexMap { enable_mdb_writemap: bool, map_size_growth: usize, ) -> Option { - let Some(index) = self.available.remove(uuid) else { - return None; - }; + let index = self.available.remove(uuid)?; Some(self.close(*uuid, index, enable_mdb_writemap, map_size_growth)) }