@@ -100,7 +100,7 @@ pub trait Handler: Sized {
100100 /// The type of Response this Handler will return
101101 type Response : IntoResponse ;
102102 /// The type of Future this Handler will return
103- type Fut : Future < Output = Result < Self :: Response , Self :: Error > > + Send + Sync + ' static ;
103+ type Fut : Future < Output = Result < Self :: Response , Self :: Error > > + Send + ' static ;
104104 /// Function used to execute handler behavior
105105 fn call ( & self , event : Request , context : Context ) -> Self :: Fut ;
106106}
@@ -115,7 +115,7 @@ impl<F, R, Fut> Handler for F
115115where
116116 F : Fn ( Request , Context ) -> Fut ,
117117 R : IntoResponse ,
118- Fut : Future < Output = Result < R , Error > > + Send + Sync + ' static ,
118+ Fut : Future < Output = Result < R , Error > > + Send + ' static ,
119119{
120120 type Response = R ;
121121 type Error = Error ;
@@ -128,7 +128,7 @@ where
128128#[ doc( hidden) ]
129129pub struct TransformResponse < R , E > {
130130 request_origin : RequestOrigin ,
131- fut : Pin < Box < dyn Future < Output = Result < R , E > > + Send + Sync > > ,
131+ fut : Pin < Box < dyn Future < Output = Result < R , E > > + Send > > ,
132132}
133133
134134impl < R , E > Future for TransformResponse < R , E >
0 commit comments