From 343463c824f4672f19be08f4786d3eeb2e7dea9f Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 26 Jun 2019 09:12:46 +0300 Subject: implement durability --- crates/ra_ide_api/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/ra_ide_api/src/lib.rs') diff --git a/crates/ra_ide_api/src/lib.rs b/crates/ra_ide_api/src/lib.rs index edb646c11..fa4ae4379 100644 --- a/crates/ra_ide_api/src/lib.rs +++ b/crates/ra_ide_api/src/lib.rs @@ -281,6 +281,9 @@ impl AnalysisHost { pub fn raw_database(&self) -> &(impl hir::db::HirDatabase + salsa::Database) { &self.db } + pub fn raw_database_mut(&mut self) -> &mut (impl hir::db::HirDatabase + salsa::Database) { + &mut self.db + } } /// Analysis is a snapshot of a world state at a moment in time. It is the main -- cgit v1.2.3