diff options
author | Aleksey Kladov <[email protected]> | 2019-01-25 07:20:35 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-25 07:20:35 +0000 |
commit | ed27bd8d776e7efd4394d6cdda02aa7f93c48273 (patch) | |
tree | 4289655253b707821a654833e0c366d2008c26d3 /crates | |
parent | b90b90cb9518e8fac3cf93ab1d7565cc2cf94ce0 (diff) |
remove useless wrapper
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_hir/src/code_model_api.rs | 2 | ||||
-rw-r--r-- | crates/ra_hir/src/code_model_impl/module.rs | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/crates/ra_hir/src/code_model_api.rs b/crates/ra_hir/src/code_model_api.rs index 6739627b4..e469c782e 100644 --- a/crates/ra_hir/src/code_model_api.rs +++ b/crates/ra_hir/src/code_model_api.rs | |||
@@ -169,7 +169,7 @@ impl Module { | |||
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> { |
172 | self.resolve_path_impl(db, path) | 172 | db.item_map(self.krate).resolve_path(db, *self, path) |
173 | } | 173 | } |
174 | 174 | ||
175 | pub fn problems(&self, db: &impl HirDatabase) -> Vec<(TreeArc<SyntaxNode>, Problem)> { | 175 | pub fn problems(&self, db: &impl HirDatabase) -> Vec<(TreeArc<SyntaxNode>, Problem)> { |
diff --git a/crates/ra_hir/src/code_model_impl/module.rs b/crates/ra_hir/src/code_model_impl/module.rs index a5b190384..bf0e212ca 100644 --- a/crates/ra_hir/src/code_model_impl/module.rs +++ b/crates/ra_hir/src/code_model_impl/module.rs | |||
@@ -96,11 +96,6 @@ impl Module { | |||
96 | item_map.per_module[&self.module_id].clone() | 96 | item_map.per_module[&self.module_id].clone() |
97 | } | 97 | } |
98 | 98 | ||
99 | pub(crate) fn resolve_path_impl(&self, db: &impl HirDatabase, path: &Path) -> PerNs<ModuleDef> { | ||
100 | let item_map = db.item_map(self.krate); | ||
101 | item_map.resolve_path(db, *self, path) | ||
102 | } | ||
103 | |||
104 | pub(crate) fn problems_impl( | 99 | pub(crate) fn problems_impl( |
105 | &self, | 100 | &self, |
106 | db: &impl HirDatabase, | 101 | db: &impl HirDatabase, |