patchwork: replace unneeded extern crate with use
diff mbox

Message ID 20161219033154.28235-1-andrew.donnellan@au1.ibm.com
State Accepted
Delegated to: Russell Currey
Headers show

Commit Message

Andrew Donnellan Dec. 19, 2016, 3:31 a.m. UTC
Also reformat that section to 80 char line length.

Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
---
 src/patchwork.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Andrew Donnellan Dec. 19, 2016, 8:35 a.m. UTC | #1
On 19/12/16 14:31, Andrew Donnellan wrote:
> Also reformat that section to 80 char line length.
>
> Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>

Applied to master: 842bbc1fb181e9abe102aa26c0ba1c00710e90e2

Patch
diff mbox

diff --git a/src/patchwork.rs b/src/patchwork.rs
index b11f6ac..b0f412b 100644
--- a/src/patchwork.rs
+++ b/src/patchwork.rs
@@ -23,10 +23,10 @@  use std::result::Result;
 
 use tempdir::TempDir;
 
-// TODO: this line is required here, but why?
-extern crate hyper;
+use hyper;
 use hyper::Client;
-use hyper::header::{Connection, Headers, Accept, ContentType, qitem, Authorization, Basic};
+use hyper::header::{Connection, Headers, Accept, ContentType, qitem,
+                    Authorization, Basic};
 use hyper::mime::{Mime, TopLevel, SubLevel, Attr, Value};
 use hyper::status::StatusCode;
 use hyper::client::response::Response;