File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -81,11 +81,11 @@ where
81
81
NT :: Item : ' static + Send ,
82
82
NT :: SinkError : ' static + Send + Sync ,
83
83
NT :: Error : ' static + Send + Sync ,
84
- NT :: Future : ' static ,
84
+ NT :: Future : ' static + Send ,
85
85
{
86
86
type Error = SpawnError < NT :: MakeError > ;
87
87
type Response = Client < NT :: Transport , Error < NT :: Transport , Request > , Request > ;
88
- type Future = Pin < Box < dyn Future < Output = Result < Self :: Response , Self :: Error > > > > ;
88
+ type Future = Pin < Box < dyn Future < Output = Result < Self :: Response , Self :: Error > > + Send > > ;
89
89
90
90
fn call ( & mut self , target : Target ) -> Self :: Future {
91
91
let maker = self . t_maker . make_transport ( target) ;
@@ -349,7 +349,7 @@ where
349
349
{
350
350
type Response = T :: Ok ;
351
351
type Error = E ;
352
- type Future = Pin < Box < dyn Future < Output = Result < Self :: Response , Self :: Error > > > > ;
352
+ type Future = Pin < Box < dyn Future < Output = Result < Self :: Response , Self :: Error > > + Send > > ;
353
353
354
354
fn poll_ready ( & mut self , cx : & mut Context ) -> Poll < Result < ( ) , E > > {
355
355
Poll :: Ready ( ready ! ( self . mediator. poll_ready( cx) ) . map_err ( |_| E :: from ( Error :: ClientDropped ) ) )
Original file line number Diff line number Diff line change @@ -60,11 +60,11 @@ where
60
60
NT :: Item : ' static + Send ,
61
61
NT :: SinkError : ' static + Send + Sync ,
62
62
NT :: Error : ' static + Send + Sync ,
63
- NT :: Future : ' static ,
63
+ NT :: Future : ' static + Send ,
64
64
{
65
65
type Error = SpawnError < NT :: MakeError > ;
66
66
type Response = Client < NT :: Transport , Error < NT :: Transport , Request > , Request > ;
67
- type Future = Pin < Box < dyn Future < Output = Result < Self :: Response , Self :: Error > > > > ;
67
+ type Future = Pin < Box < dyn Future < Output = Result < Self :: Response , Self :: Error > > + Send > > ;
68
68
69
69
fn call ( & mut self , target : Target ) -> Self :: Future {
70
70
let maker = self . t_maker . make_transport ( target) ;
@@ -308,7 +308,7 @@ where
308
308
{
309
309
type Response = T :: Ok ;
310
310
type Error = E ;
311
- type Future = Pin < Box < dyn Future < Output = Result < Self :: Response , Self :: Error > > > > ;
311
+ type Future = Pin < Box < dyn Future < Output = Result < Self :: Response , Self :: Error > > + Send > > ;
312
312
313
313
fn poll_ready ( & mut self , cx : & mut Context ) -> Poll < Result < ( ) , E > > {
314
314
Poll :: Ready ( ready ! ( self . mediator. poll_ready( cx) ) . map_err ( |_| E :: from ( Error :: ClientDropped ) ) )
You can’t perform that action at this time.
0 commit comments