aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/src/descriptors.rs
diff options
context:
space:
mode:
authorAlan Du <[email protected]>2018-10-18 00:25:37 +0100
committerAlan Du <[email protected]>2018-10-18 00:42:23 +0100
commita5da770ec60a73abcc5350f25146be973540063f (patch)
treed0384d6a786c3a07689dc4dff04209207487b76b /crates/ra_analysis/src/descriptors.rs
parentfc8024de51261d252b1ad88566db6e246d14ee16 (diff)
Fix function calls
Diffstat (limited to 'crates/ra_analysis/src/descriptors.rs')
-rw-r--r--crates/ra_analysis/src/descriptors.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_analysis/src/descriptors.rs b/crates/ra_analysis/src/descriptors.rs
index 98429326c..dced99b07 100644
--- a/crates/ra_analysis/src/descriptors.rs
+++ b/crates/ra_analysis/src/descriptors.rs
@@ -183,8 +183,7 @@ impl Link {
183 root: ast::Root<'a>, 183 root: ast::Root<'a>,
184 ) -> ast::Module<'a> { 184 ) -> ast::Module<'a> {
185 modules(root) 185 modules(root)
186 .filter(|(name, _)| name == &tree.link(self).name) 186 .find(|(name, _)| name == &tree.link(self).name)
187 .next()
188 .unwrap() 187 .unwrap()
189 .1 188 .1
190 } 189 }