7878#![ cfg_attr( quicrpc_docsrs, feature( doc_cfg) ) ]
7979use std:: { fmt:: Debug , future:: Future , io, marker:: PhantomData , ops:: Deref } ;
8080
81- use n0_future:: boxed:: BoxFuture ;
8281use sealed:: Sealed ;
8382use serde:: { de:: DeserializeOwned , Serialize } ;
8483
@@ -141,7 +140,7 @@ pub mod channel {
141140 pub mod oneshot {
142141 use std:: { fmt:: Debug , future:: Future , io, pin:: Pin , task} ;
143142
144- use n0_future:: boxed :: BoxFuture ;
143+ use n0_future:: future :: Boxed as BoxFuture ;
145144
146145 use super :: { RecvError , SendError } ;
147146 use crate :: util:: FusedOneshotReceiver ;
@@ -179,7 +178,7 @@ pub mod channel {
179178 /// Remote receivers are always boxed, since for remote communication the boxing
180179 /// overhead is negligible. However, boxing can also be used for local communication,
181180 /// e.g. when applying a transform or filter to the message before receiving it.
182- pub type BoxedReceiver < T > = crate :: BoxFuture < io:: Result < T > > ;
181+ pub type BoxedReceiver < T > = BoxFuture < io:: Result < T > > ;
183182
184183 /// A oneshot sender.
185184 ///
@@ -1093,7 +1092,7 @@ pub mod rpc {
10931092 //! Module for cross-process RPC using [`quinn`].
10941093 use std:: { fmt:: Debug , future:: Future , io, marker:: PhantomData , pin:: Pin , sync:: Arc } ;
10951094
1096- use n0_future:: task:: JoinSet ;
1095+ use n0_future:: { future :: Boxed as BoxFuture , task:: JoinSet } ;
10971096 use quinn:: ConnectionError ;
10981097 use serde:: { de:: DeserializeOwned , Serialize } ;
10991098 use smallvec:: SmallVec ;
@@ -1107,7 +1106,7 @@ pub mod rpc {
11071106 RecvError , SendError ,
11081107 } ,
11091108 util:: { now_or_never, AsyncReadVarintExt , WriteVarintExt } ,
1110- BoxFuture , RequestError , RpcMessage ,
1109+ RequestError , RpcMessage ,
11111110 } ;
11121111
11131112 /// Error that can occur when writing the initial message when doing a
0 commit comments