mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
⬆️ salsa
This commit is contained in:
parent
58a3b3b502
commit
131c2da6bf
9 changed files with 53 additions and 25 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue