style(all): Address suggestions made by rust-clippy

This commit is contained in:
Corey Farwell
2015-12-22 23:26:16 -08:00
parent 7d4db58c8c
commit 4c7f6f0c1e
14 changed files with 39 additions and 38 deletions

View File

@@ -239,8 +239,8 @@ impl<'a> RequestBuilder<'a> {
let mut url = try!(url);
trace!("send {:?} {:?}", method, url);
let can_have_body = match &method {
&Method::Get | &Method::Head => false,
let can_have_body = match method {
Method::Get | Method::Head => false,
_ => true
};