mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-18 05:45:19 +01:00
Fix CI with 1.80
This commit is contained in:
parent
f925cbe506
commit
3e65a83110
7 changed files with 11 additions and 9 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue