diff options
Diffstat (limited to 'crates/ra_analysis/src/descriptors.rs')
-rw-r--r-- | crates/ra_analysis/src/descriptors.rs | 3 |
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 | } |