Skip to content

Commit b2a3d06

Browse files
committed
Return lost Default impl to its rightful place
1 parent 6b5b2d1 commit b2a3d06

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

rtic-sync/src/channel.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ macro_rules! cs_access {
7272
};
7373
}
7474

75+
impl<T, const N: usize> Default for Channel<T, N> {
76+
fn default() -> Self {
77+
Self::new()
78+
}
79+
}
80+
7581
impl<T, const N: usize> Channel<T, N> {
7682
const _CHECK: () = assert!(N < 256, "This queue support a maximum of 255 entries");
7783

0 commit comments

Comments
 (0)