aboutsummaryrefslogtreecommitdiff
path: root/rtic-sync/src
diff options
context:
space:
mode:
Diffstat (limited to 'rtic-sync/src')
-rw-r--r--rtic-sync/src/channel.rs6
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");