mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 13:40:15 +03:00
clippy: needless_lifetimes
This commit is contained in:
@@ -21,7 +21,7 @@ pub fn new(root: ast::Root) -> 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() {
|
||||
|
||||
Reference in New Issue
Block a user