Fix clippy lints

This commit is contained in:
Emil Fresk 2024-05-27 10:48:58 +02:00
parent 9989af1b97
commit 2efdef6029
7 changed files with 38 additions and 2 deletions

View file

@ -29,6 +29,12 @@ impl<T> DoublyLinkedList<T> {
}
}
impl<T> Default for DoublyLinkedList<T> {
fn default() -> Self {
Self::new()
}
}
impl<T: Clone> DoublyLinkedList<T> {
const R: Ordering = Ordering::Relaxed;

View file

@ -64,3 +64,9 @@ impl CriticalSectionWakerRegistration {
});
}
}
impl Default for CriticalSectionWakerRegistration {
fn default() -> Self {
Self::new()
}
}