diff --git a/Cargo.toml b/Cargo.toml index 2ac9873..8d52f22 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "index_list" -version = "0.2.13" +version = "0.2.14" description = "A doubly linked list implemented in safe Rust using vector indexes" keywords = ["linked-list"] categories = ["data-structures"] diff --git a/src/listdrainiter.rs b/src/listdrainiter.rs index 6c24369..f4a7225 100644 --- a/src/listdrainiter.rs +++ b/src/listdrainiter.rs @@ -17,14 +17,14 @@ impl<'a, T> ListDrainIter<'a, T> { } } -impl<'a, T> Iterator for ListDrainIter<'a, T> { +impl Iterator for ListDrainIter<'_, T> { type Item = T; fn next(&mut self) -> Option { self.0.remove_first() } } -impl<'a, T> DoubleEndedIterator for ListDrainIter<'a, T> { +impl DoubleEndedIterator for ListDrainIter<'_, T> { fn next_back(&mut self) -> Option { self.0.remove_last() } diff --git a/src/listiter.rs b/src/listiter.rs index 5dcba52..66c5965 100644 --- a/src/listiter.rs +++ b/src/listiter.rs @@ -31,7 +31,7 @@ impl<'a, T> Iterator for ListIter<'a, T> { } impl FusedIterator for ListIter<'_, T> {} -impl<'a, T> DoubleEndedIterator for ListIter<'a, T> { +impl DoubleEndedIterator for ListIter<'_, T> { fn next_back(&mut self) -> Option { let item = self.list.get(self.prev); self.prev = self.list.prev_index(self.prev);