diff options
author | Aleksey Kladov <[email protected]> | 2019-01-25 07:29:00 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-25 07:29:00 +0000 |
commit | 74beb5bfcbc33d6232a9b08b4df4bcfd781790e9 (patch) | |
tree | ce68818c693d878128f5c3d7116c9c695ac269b2 /crates/ra_hir/src/code_model_api.rs | |
parent | ed27bd8d776e7efd4394d6cdda02aa7f93c48273 (diff) |
simplify
Diffstat (limited to 'crates/ra_hir/src/code_model_api.rs')
-rw-r--r-- | crates/ra_hir/src/code_model_api.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/code_model_api.rs b/crates/ra_hir/src/code_model_api.rs index e469c782e..a469ad477 100644 --- a/crates/ra_hir/src/code_model_api.rs +++ b/crates/ra_hir/src/code_model_api.rs | |||
@@ -165,7 +165,7 @@ impl Module { | |||
165 | 165 | ||
166 | /// Returns a `ModuleScope`: a set of items, visible in this module. | 166 | /// Returns a `ModuleScope`: a set of items, visible in this module. |
167 | pub fn scope(&self, db: &impl HirDatabase) -> ModuleScope { | 167 | pub fn scope(&self, db: &impl HirDatabase) -> ModuleScope { |
168 | self.scope_impl(db) | 168 | db.item_map(self.krate)[self.module_id].clone() |
169 | } | 169 | } |
170 | 170 | ||
171 | pub fn resolve_path(&self, db: &impl HirDatabase, path: &Path) -> PerNs<ModuleDef> { | 171 | pub fn resolve_path(&self, db: &impl HirDatabase, path: &Path) -> PerNs<ModuleDef> { |