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