From 9f0a7eb97b4e047cebbe51ffd6f9e2092dd63e00 Mon Sep 17 00:00:00 2001 From: Pavan Kumar Sunkara Date: Fri, 24 Apr 2020 21:57:10 +0200 Subject: Make some stuff public so that they can be reused by other tools --- crates/ra_ide/src/lib.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'crates/ra_ide') diff --git a/crates/ra_ide/src/lib.rs b/crates/ra_ide/src/lib.rs index 915199bd8..78149ddfc 100644 --- a/crates/ra_ide/src/lib.rs +++ b/crates/ra_ide/src/lib.rs @@ -176,14 +176,10 @@ impl AnalysisHost { pub fn request_cancellation(&mut self) { self.db.request_cancellation(); } - pub fn raw_database( - &self, - ) -> &(impl hir::db::HirDatabase + salsa::Database + ra_db::SourceDatabaseExt) { + pub fn raw_database(&self) -> &RootDatabase { &self.db } - pub fn raw_database_mut( - &mut self, - ) -> &mut (impl hir::db::HirDatabase + salsa::Database + ra_db::SourceDatabaseExt) { + pub fn raw_database_mut(&mut self) -> &mut RootDatabase { &mut self.db } } -- cgit v1.2.3