[snowpatch] [PATCH] patchwork: replace unneeded extern crate with use
Andrew Donnellan
andrew.donnellan at au1.ibm.com
Mon Dec 19 14:31:54 AEDT 2016
Also reformat that section to 80 char line length.
Signed-off-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>
---
src/patchwork.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
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;
--
Andrew Donnellan OzLabs, ADL Canberra
andrew.donnellan at au1.ibm.com IBM Australia Limited
More information about the snowpatch
mailing list