Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions exercises/doubly-linked-list/example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ impl<T> Cursor<'_, T> {
}
}

#[allow(clippy::should_implement_trait)]
pub fn next(&mut self) -> Option<&mut T> {
// safe as node.next is a valid potential pointer
unsafe { self._step(|node| node.next) }
Expand Down
1 change: 1 addition & 0 deletions exercises/doubly-linked-list/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ impl<T> Cursor<'_, T> {

/// Move one position forward (towards the back) and
/// return a reference to the new position
#[allow(clippy::should_implement_trait)]
pub fn next(&mut self) -> Option<&mut T> {
unimplemented!()
}
Expand Down