diff --git a/rtic-sync/src/channel.rs b/rtic-sync/src/channel.rs index 64c5ac9dc634..f37bad56e796 100644 --- a/rtic-sync/src/channel.rs +++ b/rtic-sync/src/channel.rs @@ -84,7 +84,7 @@ impl Channel { /// Create a new channel. #[cfg(not(loom))] pub const fn new() -> Self { - Self::size_check(); + const { Self::size_check() }; Self { freeq: UnsafeCell::new(Deque::new()), readyq: UnsafeCell::new(Deque::new()), @@ -99,7 +99,7 @@ impl Channel { /// Create a new channel. #[cfg(loom)] pub fn new() -> Self { - Self::size_check(); + const { Self::size_check() }; Self { freeq: UnsafeCell::new(Deque::new()), readyq: UnsafeCell::new(Deque::new()),