aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/code_model_impl
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-01-24 21:02:18 +0000
committerAleksey Kladov <[email protected]>2019-01-24 21:02:18 +0000
commit90215eb5a026d446ae7e5d4e62c43d6d8c82edf1 (patch)
tree75b35f218e07a8c6feba4e6204a9da762c2a9089 /crates/ra_hir/src/code_model_impl
parent1a5f32fcb516c1647c7581f21be9b11c8f1f94ba (diff)
generalize boilerplate
Diffstat (limited to 'crates/ra_hir/src/code_model_impl')
-rw-r--r--crates/ra_hir/src/code_model_impl/function.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/crates/ra_hir/src/code_model_impl/function.rs b/crates/ra_hir/src/code_model_impl/function.rs
index 8a2ab5714..6ce5c77b1 100644
--- a/crates/ra_hir/src/code_model_impl/function.rs
+++ b/crates/ra_hir/src/code_model_impl/function.rs
@@ -30,10 +30,6 @@ impl Function {
30 db.body_hir(*self) 30 db.body_hir(*self)
31 } 31 }
32 32
33 pub(crate) fn module(&self, db: &impl HirDatabase) -> Module {
34 self.id.loc(db).module
35 }
36
37 /// The containing impl block, if this is a method. 33 /// The containing impl block, if this is a method.
38 pub(crate) fn impl_block(&self, db: &impl HirDatabase) -> Option<ImplBlock> { 34 pub(crate) fn impl_block(&self, db: &impl HirDatabase) -> Option<ImplBlock> {
39 let module_impls = db.impls_in_module(self.module(db)); 35 let module_impls = db.impls_in_module(self.module(db));