aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAlan Du <[email protected]>2018-10-16 18:39:46 +0100
committerAlan Du <[email protected]>2018-10-18 00:42:23 +0100
commitbc774fe6cf9948bd554e3fb5b51398b9328e0f4e (patch)
treeb551700dbd5ce418a6e771a3173cc3de84bb08af /crates
parent2ae9dfa812ccf18867373f77a106161378a6d91d (diff)
clippy: needless_lifetimes
Diffstat (limited to 'crates')
-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() {