This commit is contained in:
Ulf Lilleengen 2024-03-12 15:37:53 +01:00
parent 8bb1fe1f65
commit c0d91600ea

View file

@ -263,12 +263,9 @@ impl<'ch, T> Future for DynamicReceiveFuture<'ch, T> {
} }
} }
impl<'ch, M: RawMutex, T, const N: usize> From<ReceiveFuture<'ch, M, T, N>> for DynamicReceiveFuture<'ch, T> impl<'ch, M: RawMutex, T, const N: usize> From<ReceiveFuture<'ch, M, T, N>> for DynamicReceiveFuture<'ch, T> {
{
fn from(value: ReceiveFuture<'ch, M, T, N>) -> Self { fn from(value: ReceiveFuture<'ch, M, T, N>) -> Self {
Self { Self { channel: value.channel }
channel: value.channel,
}
} }
} }
@ -330,8 +327,7 @@ impl<'ch, T> Future for DynamicSendFuture<'ch, T> {
impl<'ch, T> Unpin for DynamicSendFuture<'ch, T> {} impl<'ch, T> Unpin for DynamicSendFuture<'ch, T> {}
impl<'ch, M: RawMutex, T, const N: usize> From<SendFuture<'ch, M, T, N>> for DynamicSendFuture<'ch, T> impl<'ch, M: RawMutex, T, const N: usize> From<SendFuture<'ch, M, T, N>> for DynamicSendFuture<'ch, T> {
{
fn from(value: SendFuture<'ch, M, T, N>) -> Self { fn from(value: SendFuture<'ch, M, T, N>) -> Self {
Self { Self {
channel: value.channel, channel: value.channel,