mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-22 21:05:11 +00:00
update on_demand_inputs invalidation
This commit is contained in:
parent
2e2239a307
commit
5c1ebc22af
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue