Drop an unnecessary Arc::clone

This commit is contained in:
Lukas Wirth 2024-07-19 18:53:52 +02:00
parent 89bcc79b5d
commit a324e46b0b

View file

@ -115,7 +115,7 @@ where
}
fn durability(&self, db: &<Q as QueryDb<'_>>::DynDb, key: &Q::Key) -> Durability {
self.slot(key).durability(db)
self.slot_map.read().get(key).map_or(Durability::LOW, |slot| slot.durability(db))
}
fn entries<C>(&self, _db: &<Q as QueryDb<'_>>::DynDb) -> C