mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-27 15:07:03 +00:00
Update src/runtime.rs
Co-Authored-By: bjorn3 <bjorn3@users.noreply.github.com>
This commit is contained in:
parent
ec5b92ea20
commit
a798f1d918
2 changed files with 2 additions and 3 deletions
|
@ -16,8 +16,7 @@ That is, when someone requests the text of a file for the first time:
|
|||
This is possible to achive in salsa, using a derived query and `report_synthetic_read` and `invalidate` queries.
|
||||
The setup looks roughtly like this:
|
||||
|
||||
```rust
|
||||
|
||||
```rust,ignore
|
||||
#[salsa::query_group(VfsDatabaseStorage)]
|
||||
trait VfsDatabase: salsa::Database + FileWathcer {
|
||||
fn read(&self, path: PathBuf) -> String;
|
||||
|
|
|
@ -396,7 +396,7 @@ where
|
|||
.report_untracked_read(self.current_revision());
|
||||
}
|
||||
|
||||
/// Fores the durebility of the current query to at most `durability`.
|
||||
/// Fores the durability of the current query to at most `durability`.
|
||||
///
|
||||
/// This is mostly useful to lower durability level of derived queries with
|
||||
/// zero inputs.
|
||||
|
|
Loading…
Reference in a new issue