Skip to content
Closed
Changes from all commits
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
4 changes: 2 additions & 2 deletions src/linked_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ impl LinkedList {
}

/// Return an iterator over the items in the list
pub fn iter(&self) -> Iter {
pub fn iter(&self) -> Iter<'_> {
Iter {
curr: self.head,
list: PhantomData,
}
}

/// Return an mutable iterator over the items in the list
pub fn iter_mut(&mut self) -> IterMut {
pub fn iter_mut(&mut self) -> IterMut<'_> {
IterMut {
prev: &mut self.head as *mut *mut usize as *mut usize,
curr: self.head,
Expand Down
Loading