From dd45697e5396d4a6ac8e838e1f4f510c960b9c43 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 15 Jan 2019 15:06:45 +0300 Subject: update salsa --- crates/ra_db/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crates/ra_db/src/lib.rs') 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::{ 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(()) } -- cgit v1.2.3