@@ -100,7 +100,7 @@ pub trait Handler: Sized {
100
100
/// The type of Response this Handler will return
101
101
type Response : IntoResponse ;
102
102
/// 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 ;
104
104
/// Function used to execute handler behavior
105
105
fn call ( & self , event : Request , context : Context ) -> Self :: Fut ;
106
106
}
@@ -115,7 +115,7 @@ impl<F, R, Fut> Handler for F
115
115
where
116
116
F : Fn ( Request , Context ) -> Fut ,
117
117
R : IntoResponse ,
118
- Fut : Future < Output = Result < R , Error > > + Send + Sync + ' static ,
118
+ Fut : Future < Output = Result < R , Error > > + Send + ' static ,
119
119
{
120
120
type Response = R ;
121
121
type Error = Error ;
@@ -128,7 +128,7 @@ where
128
128
#[ doc( hidden) ]
129
129
pub struct TransformResponse < R , E > {
130
130
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 > > ,
132
132
}
133
133
134
134
impl < R , E > Future for TransformResponse < R , E >
0 commit comments