From 4dffdcf14abe0c79f9d7a9702be77958be1f75b1 Mon Sep 17 00:00:00 2001 From: csmoe Date: Fri, 1 Feb 2019 18:33:41 +0800 Subject: split HirDatabase api --- crates/ra_hir/src/code_model_impl/function.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'crates/ra_hir/src/code_model_impl/function.rs') diff --git a/crates/ra_hir/src/code_model_impl/function.rs b/crates/ra_hir/src/code_model_impl/function.rs index 422643996..5b0b31b1d 100644 --- a/crates/ra_hir/src/code_model_impl/function.rs +++ b/crates/ra_hir/src/code_model_impl/function.rs @@ -5,7 +5,7 @@ use ra_syntax::ast::{self, NameOwner}; use crate::{ HirDatabase, Name, AsName, Function, FnSignature, type_ref::{TypeRef, Mutability}, - expr::Body, + expr::Body, PersistentHirDatabase, impl_block::ImplBlock, }; @@ -22,7 +22,10 @@ impl Function { } impl FnSignature { - pub(crate) fn fn_signature_query(db: &impl HirDatabase, func: Function) -> Arc { + pub(crate) fn fn_signature_query( + db: &impl PersistentHirDatabase, + func: Function, + ) -> Arc { let (_, node) = func.source(db); let name = node .name() -- cgit v1.2.3