From 3e65a83110d8cccf25cb3e78a9faedfeed4826ac Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Wed, 7 Aug 2024 20:37:18 +0200 Subject: Fix CI with 1.80 --- rtic-sync/src/channel.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'rtic-sync') diff --git a/rtic-sync/src/channel.rs b/rtic-sync/src/channel.rs index b49ed2f..0857f72 100644 --- a/rtic-sync/src/channel.rs +++ b/rtic-sync/src/channel.rs @@ -62,15 +62,13 @@ impl Default for Channel { impl Channel { const _CHECK: () = assert!(N < 256, "This queue support a maximum of 255 entries"); - const INIT_SLOTS: UnsafeCell> = UnsafeCell::new(MaybeUninit::uninit()); - /// Create a new channel. pub const fn new() -> Self { Self { freeq: UnsafeCell::new(Deque::new()), readyq: UnsafeCell::new(Deque::new()), receiver_waker: WakerRegistration::new(), - slots: [Self::INIT_SLOTS; N], + slots: [const { UnsafeCell::new(MaybeUninit::uninit()) }; N], wait_queue: WaitQueue::new(), receiver_dropped: UnsafeCell::new(false), num_senders: UnsafeCell::new(0), -- cgit v1.2.3