mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
update salsa
This commit is contained in:
parent
f6f2e89e7a
commit
dd45697e53
7 changed files with 44 additions and 44 deletions
|
@ -22,8 +22,9 @@ pub use crate::{
|
|||
|
||||
pub trait BaseDatabase: salsa::Database + panic::RefUnwindSafe {
|
||||
fn check_canceled(&self) -> Cancelable<()> {
|
||||
self.salsa_runtime()
|
||||
.if_current_revision_is_canceled(Canceled::throw);
|
||||
if self.salsa_runtime().is_current_revision_canceled() {
|
||||
Canceled::throw()
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue