Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b639d14

Browse files
authored
style: include elidable_lifetime_names (TheAlgorithms#887)
1 parent 6ff817b commit b639d14

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ unused_self = { level = "allow", priority = 1 }
6969
used_underscore_binding = { level = "allow", priority = 1 }
7070
ref_option = { level = "allow", priority = 1 }
7171
unnecessary_semicolon = { level = "allow", priority = 1 }
72-
elidable_lifetime_names = { level = "allow", priority = 1 }
7372
# restriction-lints:
7473
absolute_paths = { level = "allow", priority = 1 }
7574
arithmetic_side_effects = { level = "allow", priority = 1 }

src/data_structures/binary_search_tree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ where
184184
stack: Vec<&'a BinarySearchTree<T>>,
185185
}
186186

187-
impl<'a, T> BinarySearchTreeIter<'a, T>
187+
impl<T> BinarySearchTreeIter<'_, T>
188188
where
189189
T: Ord,
190190
{

src/data_structures/veb_tree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ impl<'a> VebTreeIter<'a> {
221221
}
222222
}
223223

224-
impl<'a> Iterator for VebTreeIter<'a> {
224+
impl Iterator for VebTreeIter<'_> {
225225
type Item = u32;
226226

227227
fn next(&mut self) -> Option<u32> {

src/math/random.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ impl PCG32 {
107107
}
108108
}
109109

110-
impl<'a> Iterator for IterMut<'a> {
110+
impl Iterator for IterMut<'_> {
111111
type Item = u32;
112112
fn next(&mut self) -> Option<Self::Item> {
113113
Some(self.pcg.get_u32())

0 commit comments

Comments
 (0)