diff options
author | Aleksey Kladov <[email protected]> | 2019-01-15 12:06:45 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-15 12:06:45 +0000 |
commit | dd45697e5396d4a6ac8e838e1f4f510c960b9c43 (patch) | |
tree | f483dcc7745092c05b03e76b8b664591b730a359 /crates/ra_db/src | |
parent | f6f2e89e7ac9c4afbda11bade21f902c552fbba2 (diff) |
update salsa
Diffstat (limited to 'crates/ra_db/src')
-rw-r--r-- | crates/ra_db/src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_db/src/lib.rs b/crates/ra_db/src/lib.rs index 0c4dfc8c6..0e7f32e66 100644 --- a/crates/ra_db/src/lib.rs +++ b/crates/ra_db/src/lib.rs | |||
@@ -22,8 +22,9 @@ pub use crate::{ | |||
22 | 22 | ||
23 | pub trait BaseDatabase: salsa::Database + panic::RefUnwindSafe { | 23 | pub trait BaseDatabase: salsa::Database + panic::RefUnwindSafe { |
24 | fn check_canceled(&self) -> Cancelable<()> { | 24 | fn check_canceled(&self) -> Cancelable<()> { |
25 | self.salsa_runtime() | 25 | if self.salsa_runtime().is_current_revision_canceled() { |
26 | .if_current_revision_is_canceled(Canceled::throw); | 26 | Canceled::throw() |
27 | } | ||
27 | Ok(()) | 28 | Ok(()) |
28 | } | 29 | } |
29 | 30 | ||