clippy: needless_lifetimes

This commit is contained in:
Alan Du 2018-10-16 13:39:46 -04:00
parent 2ae9dfa812
commit bc774fe6cf

View File

@ -21,7 +21,7 @@ impl ModuleDescriptor {
}
}
fn modules<'a>(root: ast::Root<'a>) -> impl Iterator<Item = (SmolStr, ast::Module<'a>)> {
fn modules(root: ast::Root<'_>) -> impl Iterator<Item = (SmolStr, ast::Module<'_>)> {
root.modules().filter_map(|module| {
let name = module.name()?.text();
if !module.has_semi() {