⬆️ salsa

This commit is contained in:
Aleksey Kladov 2019-11-26 11:29:20 +03:00
parent 58a3b3b502
commit 131c2da6bf
9 changed files with 53 additions and 25 deletions

View file

@ -23,6 +23,10 @@ impl salsa::Database for TestDB {
&self.runtime
}
fn salsa_runtime_mut(&mut self) -> &mut salsa::Runtime<Self> {
&mut self.runtime
}
fn salsa_event(&self, event: impl Fn() -> salsa::Event<TestDB>) {
let mut events = self.events.lock().unwrap();
if let Some(events) = &mut *events {