Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ trait TryParse {

type TryParseResult<T> = Result<httparse::Status<(Incoming<T>, 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)> {
Expand All @@ -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<RawStatus> {
Expand Down