diff options
author | Aleksey Kladov <[email protected]> | 2018-11-20 14:23:17 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-11-20 14:23:17 +0000 |
commit | 8fc51501e06661e0a096ac6363ccb82d604c933a (patch) | |
tree | 0cfd90b9bc3ef57bef6381267941074cd1ef8377 /crates/ra_analysis/src/descriptors/module | |
parent | 1913bedc2ec51c5ac44c6b72dd8e84b05026c694 (diff) |
Remove ModId
Diffstat (limited to 'crates/ra_analysis/src/descriptors/module')
-rw-r--r-- | crates/ra_analysis/src/descriptors/module/mod.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/crates/ra_analysis/src/descriptors/module/mod.rs b/crates/ra_analysis/src/descriptors/module/mod.rs index aab792e28..047454cff 100644 --- a/crates/ra_analysis/src/descriptors/module/mod.rs +++ b/crates/ra_analysis/src/descriptors/module/mod.rs | |||
@@ -213,11 +213,7 @@ impl ModuleId { | |||
213 | .find(|it| it.name == name)?; | 213 | .find(|it| it.name == name)?; |
214 | Some(*link.points_to.first()?) | 214 | Some(*link.points_to.first()?) |
215 | } | 215 | } |
216 | fn problems( | 216 | fn problems(self, tree: &ModuleTree, db: &impl SyntaxDatabase) -> Vec<(SyntaxNode, Problem)> { |
217 | self, | ||
218 | tree: &ModuleTree, | ||
219 | db: &impl SyntaxDatabase, | ||
220 | ) -> Vec<(SyntaxNode, Problem)> { | ||
221 | tree.module(self) | 217 | tree.module(self) |
222 | .children | 218 | .children |
223 | .iter() | 219 | .iter() |