From bc774fe6cf9948bd554e3fb5b51398b9328e0f4e Mon Sep 17 00:00:00 2001 From: Alan Du Date: Tue, 16 Oct 2018 13:39:46 -0400 Subject: clippy: needless_lifetimes --- crates/ra_analysis/src/descriptors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_analysis/src') 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 { } } -fn modules<'a>(root: ast::Root<'a>) -> impl Iterator)> { +fn modules(root: ast::Root<'_>) -> impl Iterator)> { root.modules().filter_map(|module| { let name = module.name()?.text(); if !module.has_semi() { -- cgit v1.2.3