From 76550fdb20bb812e92a1fc3f3a7eaaf4a689348b Mon Sep 17 00:00:00 2001 From: Jonathan Reem Date: Sat, 18 Apr 2015 20:33:58 -0700 Subject: [PATCH] fix(http): Adjust httparse Request and Response lifetimes. --- src/http.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http.rs b/src/http.rs index 8d607d2ff6..593e1e0cde 100644 --- a/src/http.rs +++ b/src/http.rs @@ -378,7 +378,7 @@ trait TryParse { type TryParseResult = Result, usize)>, HttpError>; -impl<'a> TryParse for httparse::Request<'a> { +impl<'a> TryParse for httparse::Request<'a, 'a> { type Subject = (Method, RequestUri); fn try_parse<'b>(headers: &'b mut [httparse::Header<'b>], buf: &'b [u8]) -> TryParseResult<(Method, RequestUri)> { @@ -399,7 +399,7 @@ impl<'a> TryParse for httparse::Request<'a> { } } -impl<'a> TryParse for httparse::Response<'a> { +impl<'a> TryParse for httparse::Response<'a, 'a> { type Subject = RawStatus; fn try_parse<'b>(headers: &'b mut [httparse::Header<'b>], buf: &'b [u8]) -> TryParseResult {