about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohann Hemmann <johann.hemmann@code.berlin>2024-01-19 15:30:37 +0100
committerJohann Hemmann <johann.hemmann@code.berlin>2024-01-19 17:31:01 +0100
commita342e936e34eddbc7bf643e90b7cf2da5f9bc69a (patch)
tree1c02134339eeef50f3bb5451473524640820b2fc
parent3839f9a9a29297128d4dcf85f90d5adcfbf610a6 (diff)
downloadrust-a342e936e34eddbc7bf643e90b7cf2da5f9bc69a.tar.gz
rust-a342e936e34eddbc7bf643e90b7cf2da5f9bc69a.zip
needless_lifetimes
-rw-r--r--Cargo.toml1
-rw-r--r--crates/hir-def/src/resolver.rs2
2 files changed, 1 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index b9d9887d56d..ad3726f0521 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -176,7 +176,6 @@ forget_non_drop = "allow"
 format_collect = "allow"
 large_enum_variant = "allow"
 needless_doctest_main = "allow"
-needless_lifetimes = "allow"
 needless_pass_by_value = "allow"
 needless_return = "allow"
 new_without_default = "allow"
diff --git a/crates/hir-def/src/resolver.rs b/crates/hir-def/src/resolver.rs
index bb530259ac5..61117141f0a 100644
--- a/crates/hir-def/src/resolver.rs
+++ b/crates/hir-def/src/resolver.rs
@@ -509,7 +509,7 @@ impl Resolver {
             .map(|id| ExternCrateDeclData::extern_crate_decl_data_query(db, id).name.clone())
     }
 
-    pub fn extern_crates_in_scope<'a>(&'a self) -> impl Iterator<Item = (Name, ModuleId)> + 'a {
+    pub fn extern_crates_in_scope(&self) -> impl Iterator<Item = (Name, ModuleId)> + '_ {
         self.module_scope
             .def_map
             .extern_prelude()