@@ -91,7 +91,7 @@ pub type Request = http::Request<Body>;
91
91
#[ doc( hidden) ]
92
92
pub struct TransformResponse < ' a , R , E > {
93
93
request_origin : RequestOrigin ,
94
- fut : Pin < Box < dyn Future < Output = Result < R , E > > + Send + ' a > > ,
94
+ fut : Pin < Box < dyn Future < Output = Result < R , E > > + ' a > > ,
95
95
}
96
96
97
97
impl < ' a , R , E > Future for TransformResponse < ' a , R , E >
@@ -121,8 +121,8 @@ pub struct Adapter<'a, R, S> {
121
121
122
122
impl < ' a , R , S > From < S > for Adapter < ' a , R , S >
123
123
where
124
- S : Service < Request , Response = R , Error = Error > + Send ,
125
- S :: Future : Send + ' a ,
124
+ S : Service < Request , Response = R , Error = Error > ,
125
+ S :: Future : ' a ,
126
126
R : IntoResponse ,
127
127
{
128
128
fn from ( service : S ) -> Self {
@@ -135,8 +135,8 @@ where
135
135
136
136
impl < ' a , R , S > Service < LambdaEvent < LambdaRequest > > for Adapter < ' a , R , S >
137
137
where
138
- S : Service < Request , Response = R , Error = Error > + Send ,
139
- S :: Future : Send + ' a ,
138
+ S : Service < Request , Response = R , Error = Error > ,
139
+ S :: Future : ' a ,
140
140
R : IntoResponse ,
141
141
{
142
142
type Response = LambdaResponse ;
@@ -162,8 +162,8 @@ where
162
162
/// converting the result into a [`LambdaResponse`].
163
163
pub async fn run < ' a , R , S > ( handler : S ) -> Result < ( ) , Error >
164
164
where
165
- S : Service < Request , Response = R , Error = Error > + Send ,
166
- S :: Future : Send + ' a ,
165
+ S : Service < Request , Response = R , Error = Error > ,
166
+ S :: Future : ' a ,
167
167
R : IntoResponse ,
168
168
{
169
169
lambda_runtime:: run ( Adapter :: from ( handler) ) . await
0 commit comments