mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-10-23 12:49:57 +00:00
impl drop for storage
This commit is contained in:
parent
2fc0a3c08f
commit
57b848da3e
1 changed files with 3 additions and 3 deletions
|
@ -171,13 +171,13 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
impl<DB> Drop for Shared<DB>
|
||||
impl<DB> Drop for Storage<DB>
|
||||
where
|
||||
DB: HasJars,
|
||||
{
|
||||
fn drop(&mut self) {
|
||||
drop(self.jars.take());
|
||||
self.cvar.notify_all();
|
||||
drop(self.shared.jars.take());
|
||||
self.shared.cvar.notify_all();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue