mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-10-23 20:59:51 +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
|
where
|
||||||
DB: HasJars,
|
DB: HasJars,
|
||||||
{
|
{
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
drop(self.jars.take());
|
drop(self.shared.jars.take());
|
||||||
self.cvar.notify_all();
|
self.shared.cvar.notify_all();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue