Skip to content

Commit 02a29ff

Browse files
authored
Handler lifetime fix (awslabs#364)
1 parent c948939 commit 02a29ff

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
@@ -5,7 +5,7 @@
55
//!
66
//! This crate abstracts over all of these trigger events using standard [`http`](https://github.com/hyperium/http) types minimizing the mental overhead
77
//! of understanding the nuances and variation between trigger details allowing you to focus more on your application while also giving you to the maximum flexibility to
8-
//! transparently use whichever lambda trigger suits your application and cost optimiztions best.
8+
//! transparently use whichever lambda trigger suits your application and cost optimizations best.
99
//!
1010
//! # Examples
1111
//!
@@ -149,7 +149,7 @@ where
149149
/// It serves as a opaque trait covering type.
150150
///
151151
/// See [this article](http://smallcultfollowing.com/babysteps/blog/2015/01/14/little-orphan-impls/)
152-
/// for a larger explaination of why this is nessessary
152+
/// for a larger explanation of why this is necessary
153153
pub struct Adapter<'a, H: Handler<'a>> {
154154
handler: H,
155155
_pd: PhantomData<&'a H>,
@@ -164,7 +164,7 @@ impl<'a, H: Handler<'a>> Handler<'a> for Adapter<'a, H> {
164164
}
165165
}
166166

167-
impl<'a, H: Handler<'a>> LambdaHandler<LambdaRequest<'a>, LambdaResponse> for Adapter<'a, H> {
167+
impl<'a, 'b, H: Handler<'a>> LambdaHandler<LambdaRequest<'b>, LambdaResponse> for Adapter<'a, H> {
168168
type Error = H::Error;
169169
type Fut = TransformResponse<'a, H::Response, Self::Error>;
170170

0 commit comments

Comments
 (0)