Skip to content

Commit

Permalink
Dereference a destructure instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeyla Hellyer committed Aug 6, 2018
1 parent c458099 commit aa437d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/http/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ impl<'a> Request<'a> {
}

pub fn build(&'a self) -> HyperRequestBuilder<'a> {
let &Request {
let Request {
body,
headers:ref request_headers,
headers: ref request_headers,
route: ref route_info,
} = self;
} = *self;
let (method, _, path) = route_info.deconstruct();

let mut builder = CLIENT.request(
Expand Down

0 comments on commit aa437d4

Please sign in to comment.