diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2024-08-07 20:37:18 +0200 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2024-08-07 21:09:58 +0200 |
| commit | 3e65a83110d8cccf25cb3e78a9faedfeed4826ac (patch) | |
| tree | 158877e66240b52cb160893f44a133bdd539c7ee /rtic-sync/src | |
| parent | f925cbe5061ec4ade77935de4a0a790e7fc3ba7c (diff) | |
Fix CI with 1.80
Diffstat (limited to 'rtic-sync/src')
| -rw-r--r-- | rtic-sync/src/channel.rs | 4 |
1 files changed, 1 insertions, 3 deletions
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<T, const N: usize> Default for Channel<T, N> { impl<T, const N: usize> Channel<T, N> { const _CHECK: () = assert!(N < 256, "This queue support a maximum of 255 entries"); - const INIT_SLOTS: UnsafeCell<MaybeUninit<T>> = 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), |
