Make Clippy happy

This commit is contained in:
Clément Renault
2025-10-07 14:37:38 +02:00
parent c1ecaba168
commit 657fbec367

View File

@@ -221,9 +221,7 @@ impl IndexMap {
enable_mdb_writemap: bool,
map_size_growth: usize,
) -> Option<EnvClosingEvent> {
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))
}