style(all): Address suggestions made by rust-clippy
This commit is contained in:
		| @@ -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 | ||||
|         }; | ||||
|  | ||||
|   | ||||
| @@ -80,8 +80,8 @@ impl Request<Fresh> { | ||||
|  | ||||
|     /// Create a new client request. | ||||
|     pub fn new(method: Method, url: Url) -> ::Result<Request<Fresh>> { | ||||
|         let mut conn = DefaultConnector::default(); | ||||
|         Request::with_connector(method, url, &mut conn) | ||||
|         let conn = DefaultConnector::default(); | ||||
|         Request::with_connector(method, url, &conn) | ||||
|     } | ||||
|  | ||||
|     /// Create a new client request with a specific underlying NetworkStream. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user