diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2024-05-27 10:48:58 +0200 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2024-05-27 11:26:06 +0200 |
| commit | 2efdef6029fc3b38974cea1664aba321f6c63ec4 (patch) | |
| tree | a7e968a88e67801ea0e6b2a924af32374493c7b7 /rtic-sync/src | |
| parent | 9989af1b97ce7111939708bb83a3cc9e871a3216 (diff) | |
Fix clippy lints
Diffstat (limited to 'rtic-sync/src')
| -rw-r--r-- | rtic-sync/src/channel.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rtic-sync/src/channel.rs b/rtic-sync/src/channel.rs index 16cf9f7..b49ed2f 100644 --- a/rtic-sync/src/channel.rs +++ b/rtic-sync/src/channel.rs @@ -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"); |
