Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
style: include elidable_lifetime_names (TheAlgorithms#887)
  • Loading branch information
vil02 authored Jun 1, 2025
commit b639d14933a7189a63e2b6b9a94ebe6db8f2b273
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion src/data_structures/binary_search_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ where
stack: Vec<&'a BinarySearchTree<T>>,
}

impl<'a, T> BinarySearchTreeIter<'a, T>
impl<T> BinarySearchTreeIter<'_, T>
where
T: Ord,
{
Expand Down
2 changes: 1 addition & 1 deletion src/data_structures/veb_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u32> {
Expand Down
2 changes: 1 addition & 1 deletion src/math/random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl PCG32 {
}
}

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