Skip to content

Commit

Permalink
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 884d033 commit d43ed4b
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 @@ -326,8 +326,8 @@ pub struct DynRequest<'headers> {
impl<'headers> DynRequest<'headers> {
/// Create a request that will allocate headers dynamically
#[inline]
pub fn new(header_capacity: Option<usize>) -> Self {
Self {
pub fn new(header_capacity: Option<usize>) -> DynRequest<'headers> {
DynRequest {
method: None,
path: None,
version: None,
Expand Down

0 comments on commit d43ed4b

Please sign in to comment.