aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_analysis/src/descriptors.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_analysis/src/descriptors.rs b/crates/ra_analysis/src/descriptors.rs
index f64fcee16..98429326c 100644
--- a/crates/ra_analysis/src/descriptors.rs
+++ b/crates/ra_analysis/src/descriptors.rs
@@ -21,7 +21,7 @@ impl ModuleDescriptor {
21 } 21 }
22} 22}
23 23
24fn modules<'a>(root: ast::Root<'a>) -> impl Iterator<Item = (SmolStr, ast::Module<'a>)> { 24fn modules(root: ast::Root<'_>) -> impl Iterator<Item = (SmolStr, ast::Module<'_>)> {
25 root.modules().filter_map(|module| { 25 root.modules().filter_map(|module| {
26 let name = module.name()?.text(); 26 let name = module.name()?.text();
27 if !module.has_semi() { 27 if !module.has_semi() {