From d7153f34345950d2d000366166943dc6568481f4 Mon Sep 17 00:00:00 2001 From: vil02 <65706193+vil02@users.noreply.github.com> Date: Sun, 1 Jun 2025 12:38:44 +0200 Subject: [PATCH] style: include `elidable_lifetime_names` --- Cargo.toml | 1 - src/data_structures/binary_search_tree.rs | 2 +- src/data_structures/veb_tree.rs | 2 +- src/math/random.rs | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e911f831a3f..5ac4b4e1f77 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -69,7 +69,6 @@ unused_self = { level = "allow", priority = 1 } used_underscore_binding = { level = "allow", priority = 1 } ref_option = { level = "allow", priority = 1 } unnecessary_semicolon = { level = "allow", priority = 1 } -elidable_lifetime_names = { level = "allow", priority = 1 } # restriction-lints: absolute_paths = { level = "allow", priority = 1 } arithmetic_side_effects = { level = "allow", priority = 1 } diff --git a/src/data_structures/binary_search_tree.rs b/src/data_structures/binary_search_tree.rs index e5767c0ed4b..193fb485408 100644 --- a/src/data_structures/binary_search_tree.rs +++ b/src/data_structures/binary_search_tree.rs @@ -184,7 +184,7 @@ where stack: Vec<&'a BinarySearchTree>, } -impl<'a, T> BinarySearchTreeIter<'a, T> +impl BinarySearchTreeIter<'_, T> where T: Ord, { diff --git a/src/data_structures/veb_tree.rs b/src/data_structures/veb_tree.rs index b928be080f4..fe5fd7fc06d 100644 --- a/src/data_structures/veb_tree.rs +++ b/src/data_structures/veb_tree.rs @@ -221,7 +221,7 @@ impl<'a> VebTreeIter<'a> { } } -impl<'a> Iterator for VebTreeIter<'a> { +impl Iterator for VebTreeIter<'_> { type Item = u32; fn next(&mut self) -> Option { diff --git a/src/math/random.rs b/src/math/random.rs index 88e87866b06..de218035484 100644 --- a/src/math/random.rs +++ b/src/math/random.rs @@ -107,7 +107,7 @@ impl PCG32 { } } -impl<'a> Iterator for IterMut<'a> { +impl Iterator for IterMut<'_> { type Item = u32; fn next(&mut self) -> Option { Some(self.pcg.get_u32())