diff --git a/src/transport/async_channel.rs b/src/transport/async_channel.rs index f3252f1..124ebe2 100644 --- a/src/transport/async_channel.rs +++ b/src/transport/async_channel.rs @@ -179,10 +179,12 @@ impl Future for OpenBiFuture { } } +type AcceptBiFutureBox = + Pin, RecvStream)>> + Send + 'static>>; + /// Future returned by [MpscServerEndpoint::accept_bi] pub struct AcceptBiFuture { - wrapped: - Pin, RecvStream)>> + Send + 'static>>, + wrapped: AcceptBiFutureBox, _p: PhantomData<(In, Out)>, }