Skip to content

Commit

Permalink
Drop an unnecessary Arc::clone
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed Jul 19, 2024
1 parent 89bcc79 commit a324e46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/salsa/src/derived.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a324e46

Please sign in to comment.