update salsa

This commit is contained in:
Aleksey Kladov 2019-01-15 15:06:45 +03:00
parent f6f2e89e7a
commit dd45697e53
7 changed files with 44 additions and 44 deletions

View file

@ -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(())
}