mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-11-29 02:59:08 +00:00
commit
ae9ab75384
1 changed files with 3 additions and 4 deletions
|
@ -75,10 +75,9 @@ where
|
||||||
DB: Database,
|
DB: Database,
|
||||||
{
|
{
|
||||||
fn try_fetch(&self, db: &DB, key: &Q::Key) -> Result<Q::Value, CycleDetected> {
|
fn try_fetch(&self, db: &DB, key: &Q::Key) -> Result<Q::Value, CycleDetected> {
|
||||||
let slot = match self.slot(key) {
|
let slot = self.slot(key).unwrap_or_else(|| {
|
||||||
Some(s) => s.clone(),
|
panic!("no value set for {:?}({:?})", Q::default(), key)
|
||||||
None => panic!("no value set for {:?}({:?})", Q::default(), key),
|
});
|
||||||
};
|
|
||||||
|
|
||||||
let StampedValue {
|
let StampedValue {
|
||||||
value,
|
value,
|
||||||
|
|
Loading…
Reference in a new issue