Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit a342e93

Browse files
committed
needless_lifetimes
1 parent 3839f9a commit a342e93

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ forget_non_drop = "allow"
176176
format_collect = "allow"
177177
large_enum_variant = "allow"
178178
needless_doctest_main = "allow"
179-
needless_lifetimes = "allow"
180179
needless_pass_by_value = "allow"
181180
needless_return = "allow"
182181
new_without_default = "allow"

crates/hir-def/src/resolver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ impl Resolver {
509509
.map(|id| ExternCrateDeclData::extern_crate_decl_data_query(db, id).name.clone())
510510
}
511511

512-
pub fn extern_crates_in_scope<'a>(&'a self) -> impl Iterator<Item = (Name, ModuleId)> + 'a {
512+
pub fn extern_crates_in_scope(&self) -> impl Iterator<Item = (Name, ModuleId)> + '_ {
513513
self.module_scope
514514
.def_map
515515
.extern_prelude()

0 commit comments

Comments
 (0)