Skip to content

Commit 7afdf11

Browse files
committed
doubly-linked-list: move clippy config to Cargo.toml
This is just a little cleaner, reducing distractions for users.
1 parent 7978fdb commit 7afdf11

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

exercises/practice/doubly-linked-list/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ advanced = []
1515
[lints.clippy]
1616
drop_non_drop = "allow" # tests call drop before students have implemented it
1717
new_without_default = "allow"
18+
should_implement_trait = "allow"

exercises/practice/doubly-linked-list/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ impl<T> Cursor<'_, T> {
5353

5454
/// Move one position forward (towards the back) and
5555
/// return a reference to the new position
56-
#[allow(clippy::should_implement_trait)]
5756
pub fn next(&mut self) -> Option<&mut T> {
5857
todo!()
5958
}

0 commit comments

Comments
 (0)