From 5737b61b818617bb1fba0636ad749687c9c528b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Tue, 7 Sep 2021 10:02:55 -0700 Subject: [PATCH] Remove Send bound in http's Handler --- lambda-http/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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>