@@ -94,7 +94,7 @@ pub trait Handler<'a>: Sized {
94
94
/// The type of Response this Handler will return
95
95
type Response : IntoResponse ;
96
96
/// The type of Future this Handler will return
97
- type Fut : Future < Output = Result < Self :: Response , Self :: Error > > + Send + ' a ;
97
+ type Fut : Future < Output = Result < Self :: Response , Self :: Error > > + ' a ;
98
98
/// Function used to execute handler behavior
99
99
fn call ( & self , event : Request , context : Context ) -> Self :: Fut ;
100
100
}
@@ -112,7 +112,7 @@ impl<'a, F, R, Fut> Handler<'a> for F
112
112
where
113
113
F : Fn ( Request , Context ) -> Fut ,
114
114
R : IntoResponse ,
115
- Fut : Future < Output = Result < R , Error > > + Send + ' a ,
115
+ Fut : Future < Output = Result < R , Error > > + ' a ,
116
116
{
117
117
type Response = R ;
118
118
type Error = Error ;
@@ -125,7 +125,7 @@ where
125
125
#[ doc( hidden) ]
126
126
pub struct TransformResponse < ' a , R , E > {
127
127
request_origin : RequestOrigin ,
128
- fut : Pin < Box < dyn Future < Output = Result < R , E > > + Send + ' a > > ,
128
+ fut : Pin < Box < dyn Future < Output = Result < R , E > > + ' a > > ,
129
129
}
130
130
131
131
impl < ' a , R , E > Future for TransformResponse < ' a , R , E >
0 commit comments