update on_demand_inputs invalidation

This commit is contained in:
Christopher Biscardi 2020-09-13 00:15:10 -07:00
parent 2e2239a307
commit 5c1ebc22af

View file

@ -38,7 +38,7 @@ struct MyDatabase { ... }
impl FileWatcher for MyDatabase {
fn watch(&self, path: &Path) { ... }
fn did_change_file(&mut self, path: &Path) {
self.query_mut(ReadQuery).invalidate(path);
ReadQuery.in_db_mut(self).invalidate(path);
}
}
```