diff --git a/lambda-http/src/lib.rs b/lambda-http/src/lib.rs index af49fc08..1e532b0d 100644 --- a/lambda-http/src/lib.rs +++ b/lambda-http/src/lib.rs @@ -94,7 +94,7 @@ pub trait Handler<'a>: Sized { /// The type of Response this Handler will return type Response: IntoResponse; /// The type of Future this Handler will return - type Fut: Future> + Send + 'a; + type Fut: Future> + 'a; /// Function used to execute handler behavior fn call(&self, event: Request, context: Context) -> Self::Fut; } @@ -112,7 +112,7 @@ impl<'a, F, R, Fut> Handler<'a> for F where F: Fn(Request, Context) -> Fut, R: IntoResponse, - Fut: Future> + Send + 'a, + Fut: Future> + 'a, { type Response = R; type Error = Error; @@ -125,7 +125,7 @@ where #[doc(hidden)] pub struct TransformResponse<'a, R, E> { request_origin: RequestOrigin, - fut: Pin> + Send + 'a>>, + fut: Pin> + 'a>>, } impl<'a, R, E> Future for TransformResponse<'a, R, E>