ChannelState should be private

This commit is contained in:
huntc 2021-07-09 10:25:50 +10:00
parent 3fdf61c819
commit 56b3e927fe

View File

@ -400,7 +400,7 @@ pub trait ChannelLike<T> {
fn set_senders_waker(&mut self, senders_waker: Waker); fn set_senders_waker(&mut self, senders_waker: Waker);
} }
pub struct ChannelState<T, const N: usize> { struct ChannelState<T, const N: usize> {
buf: [MaybeUninit<UnsafeCell<T>>; N], buf: [MaybeUninit<UnsafeCell<T>>; N],
read_pos: usize, read_pos: usize,
write_pos: usize, write_pos: usize,