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

@ -53,6 +53,12 @@ struct UnsafeAccess<'a, const N: usize> {
num_senders: &'a mut usize,
}
impl<T, const N: usize> Default for Channel<T, N> {
fn default() -> Self {
Self::new()
}
}
impl<T, const N: usize> Channel<T, N> {
const _CHECK: () = assert!(N < 256, "This queue support a maximum of 255 entries");