Skip to content

Commit

Permalink
add rust 1.10 compatiblity
Browse files Browse the repository at this point in the history
  • Loading branch information
earthengine committed Jan 26, 2019
1 parent 6da4a2d commit 884d033
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,15 +354,15 @@ impl<'headers> DynRequest<'headers> {
let mut bytes = Bytes::new(buf);
let mut pos = 0;
complete!(skip_empty_lines(&mut bytes));
self.method = match parse_token_offset(&mut bytes)? {
self.method = match try!(parse_token_offset(&mut bytes)) {
Status::Complete((s,l,p)) => {
let r =Some((s+pos, l));
pos += p;
r
},
Status::Partial => return Ok(Status::Partial)
};
self.path = match parse_uri_offset(&mut bytes)? {
self.path = match try!(parse_uri_offset(&mut bytes)) {
Status::Complete((s,l,_)) => {
Some((s+pos, l))
},
Expand Down

0 comments on commit 884d033

Please sign in to comment.