@@ -94,7 +94,7 @@ pub trait Handler<'a>: Sized {
9494 /// The type of Response this Handler will return
9595 type Response : IntoResponse ;
9696 /// 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 ;
9898 /// Function used to execute handler behavior
9999 fn call ( & self , event : Request , context : Context ) -> Self :: Fut ;
100100}
@@ -112,7 +112,7 @@ impl<'a, F, R, Fut> Handler<'a> for F
112112where
113113 F : Fn ( Request , Context ) -> Fut ,
114114 R : IntoResponse ,
115- Fut : Future < Output = Result < R , Error > > + Send + ' a ,
115+ Fut : Future < Output = Result < R , Error > > + ' a ,
116116{
117117 type Response = R ;
118118 type Error = Error ;
@@ -125,7 +125,7 @@ where
125125#[ doc( hidden) ]
126126pub struct TransformResponse < ' a , R , E > {
127127 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 > > ,
129129}
130130
131131impl < ' a , R , E > Future for TransformResponse < ' a , R , E >
0 commit comments