mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +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 {
|
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
|
fn entries<C>(&self, _db: &<Q as QueryDb<'_>>::DynDb) -> C
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue