Skip to content

Commit a324e46

Browse files
committed
Drop an unnecessary Arc::clone
1 parent 89bcc79 commit a324e46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/salsa/src/derived.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ where
115115
}
116116

117117
fn durability(&self, db: &<Q as QueryDb<'_>>::DynDb, key: &Q::Key) -> Durability {
118-
self.slot(key).durability(db)
118+
self.slot_map.read().get(key).map_or(Durability::LOW, |slot| slot.durability(db))
119119
}
120120

121121
fn entries<C>(&self, _db: &<Q as QueryDb<'_>>::DynDb) -> C

0 commit comments

Comments
 (0)