mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +00:00
Drop an unnecessary Arc::clone
This commit is contained in:
parent
89bcc79b5d
commit
a324e46b0b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue