diff --git a/embassy/src/channel/mpsc.rs b/embassy/src/channel/mpsc.rs index c7745244..3585b803 100644 --- a/embassy/src/channel/mpsc.rs +++ b/embassy/src/channel/mpsc.rs @@ -39,7 +39,6 @@ use core::cell::UnsafeCell; use core::fmt; -use core::marker::PhantomData; use core::pin::Pin; use core::task::Context; use core::task::Poll; @@ -75,7 +74,6 @@ where M: Mutex, { channel_cell: &'ch UnsafeCell>, - _receiver_consumed: &'ch mut PhantomData<()>, } // Safe to pass the receiver around @@ -123,7 +121,6 @@ where }; let receiver = Receiver { channel_cell: &channel.channel_cell, - _receiver_consumed: &mut channel.receiver_consumed, }; Channel::lock(&channel.channel_cell, |c| { c.register_receiver(); @@ -587,7 +584,6 @@ where M: Mutex, { channel_cell: UnsafeCell>, - receiver_consumed: PhantomData<()>, } struct ChannelCell @@ -625,7 +621,6 @@ where let channel_cell = ChannelCell { mutex, state }; Channel { channel_cell: UnsafeCell::new(channel_cell), - receiver_consumed: PhantomData, } }