diff options
author | Alan Du <[email protected]> | 2018-10-16 18:39:46 +0100 |
---|---|---|
committer | Alan Du <[email protected]> | 2018-10-18 00:42:23 +0100 |
commit | bc774fe6cf9948bd554e3fb5b51398b9328e0f4e (patch) | |
tree | b551700dbd5ce418a6e771a3173cc3de84bb08af /crates/ra_analysis/src/descriptors.rs | |
parent | 2ae9dfa812ccf18867373f77a106161378a6d91d (diff) |
clippy: needless_lifetimes
Diffstat (limited to 'crates/ra_analysis/src/descriptors.rs')
-rw-r--r-- | crates/ra_analysis/src/descriptors.rs | 2 |
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 | ||
24 | fn modules<'a>(root: ast::Root<'a>) -> impl Iterator<Item = (SmolStr, ast::Module<'a>)> { | 24 | fn 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() { |