From e89b51fb2be6ecfad804a83fc57243ef4a053c05 Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Tue, 25 Jun 2024 19:12:04 +0200 Subject: [PATCH] type alias --- src/transport/async_channel.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)>, }