Skip to content

Commit 3871cb4

Browse files
authored
Remove Send bound in http's Handler (#344)
1 parent 4dd6817 commit 3871cb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lambda-http/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pub trait Handler<'a>: Sized {
9494
/// The type of Response this Handler will return
9595
type Response: IntoResponse;
9696
/// The type of Future this Handler will return
97-
type Fut: Future<Output = Result<Self::Response, Self::Error>> + Send + 'a;
97+
type Fut: Future<Output = Result<Self::Response, Self::Error>> + 'a;
9898
/// Function used to execute handler behavior
9999
fn call(&self, event: Request, context: Context) -> Self::Fut;
100100
}
@@ -112,7 +112,7 @@ impl<'a, F, R, Fut> Handler<'a> for F
112112
where
113113
F: Fn(Request, Context) -> Fut,
114114
R: IntoResponse,
115-
Fut: Future<Output = Result<R, Error>> + Send + 'a,
115+
Fut: Future<Output = Result<R, Error>> + 'a,
116116
{
117117
type Response = R;
118118
type Error = Error;
@@ -125,7 +125,7 @@ where
125125
#[doc(hidden)]
126126
pub struct TransformResponse<'a, R, E> {
127127
request_origin: RequestOrigin,
128-
fut: Pin<Box<dyn Future<Output = Result<R, E>> + Send + 'a>>,
128+
fut: Pin<Box<dyn Future<Output = Result<R, E>> + 'a>>,
129129
}
130130

131131
impl<'a, R, E> Future for TransformResponse<'a, R, E>

0 commit comments

Comments
 (0)