mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 05:45:19 +01:00
Fix clippy lints
This commit is contained in:
parent
9989af1b97
commit
2efdef6029
7 changed files with 38 additions and 2 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue