diff options
author | Florian Diebold <[email protected]> | 2018-12-25 12:31:30 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2018-12-25 14:16:42 +0000 |
commit | 07a72859650254d8ba326e2c9683ae52164cb3b5 (patch) | |
tree | bc652bf0deb9f0d12380081b04585a2beaa97fce /crates/ra_hir/src/function.rs | |
parent | 4cb7b0f2af9787abe1c73fc3922e9b426a96e0ef (diff) |
Collect field data for structs/enum variants
Diffstat (limited to 'crates/ra_hir/src/function.rs')
-rw-r--r-- | crates/ra_hir/src/function.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_hir/src/function.rs b/crates/ra_hir/src/function.rs index d36477b48..01f0f3a66 100644 --- a/crates/ra_hir/src/function.rs +++ b/crates/ra_hir/src/function.rs | |||
@@ -46,8 +46,7 @@ impl Function { | |||
46 | } | 46 | } |
47 | 47 | ||
48 | pub fn module(&self, db: &impl HirDatabase) -> Cancelable<Module> { | 48 | pub fn module(&self, db: &impl HirDatabase) -> Cancelable<Module> { |
49 | let loc = self.fn_id.0.loc(db); | 49 | self.fn_id.0.module(db) |
50 | Module::new(db, loc.source_root_id, loc.module_id) | ||
51 | } | 50 | } |
52 | } | 51 | } |
53 | 52 | ||