remove unnecessary extern crate lines
This commit is contained in:
		
				
					committed by
					
						 Sean McArthur
						Sean McArthur
					
				
			
			
				
	
			
			
			
						parent
						
							5dc5162765
						
					
				
				
					commit
					1452ca2bd1
				
			| @@ -1,6 +1,6 @@ | |||||||
| use std::fmt; | use std::fmt; | ||||||
|  |  | ||||||
| use futures::{Future, Stream, Poll, Async}; | use futures::{Future, Stream, Poll, Async, try_ready}; | ||||||
| use bytes::{Buf, Bytes}; | use bytes::{Buf, Bytes}; | ||||||
| use hyper::body::Payload; | use hyper::body::Payload; | ||||||
| use tokio::timer::Delay; | use tokio::timer::Delay; | ||||||
|   | |||||||
| @@ -28,6 +28,8 @@ use mime; | |||||||
| use native_tls::TlsConnector; | use native_tls::TlsConnector; | ||||||
| use tokio::{clock, timer::Delay}; | use tokio::{clock, timer::Delay}; | ||||||
|  |  | ||||||
|  | use log::{debug}; | ||||||
|  |  | ||||||
|  |  | ||||||
| use super::request::{Request, RequestBuilder}; | use super::request::{Request, RequestBuilder}; | ||||||
| use super::response::Response; | use super::response::Response; | ||||||
|   | |||||||
| @@ -31,6 +31,8 @@ use futures::{Async, Future, Poll, Stream}; | |||||||
| use hyper::{HeaderMap}; | use hyper::{HeaderMap}; | ||||||
| use hyper::header::{CONTENT_ENCODING, CONTENT_LENGTH, TRANSFER_ENCODING}; | use hyper::header::{CONTENT_ENCODING, CONTENT_LENGTH, TRANSFER_ENCODING}; | ||||||
|  |  | ||||||
|  | use log::{warn}; | ||||||
|  |  | ||||||
| use super::{Body, Chunk}; | use super::{Body, Chunk}; | ||||||
| use crate::error; | use crate::error; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -5,7 +5,7 @@ use std::net::SocketAddr; | |||||||
| use std::borrow::Cow; | use std::borrow::Cow; | ||||||
|  |  | ||||||
| use encoding_rs::{Encoding, UTF_8}; | use encoding_rs::{Encoding, UTF_8}; | ||||||
| use futures::{Async, Future, Poll, Stream}; | use futures::{Async, Future, Poll, Stream, try_ready}; | ||||||
| use futures::stream::Concat2; | use futures::stream::Concat2; | ||||||
| use http; | use http; | ||||||
| use hyper::{HeaderMap, StatusCode, Version}; | use hyper::{HeaderMap, StatusCode, Version}; | ||||||
| @@ -16,6 +16,7 @@ use tokio::timer::Delay; | |||||||
| use serde::de::DeserializeOwned; | use serde::de::DeserializeOwned; | ||||||
| use serde_json; | use serde_json; | ||||||
| use url::Url; | use url::Url; | ||||||
|  | use log::{debug}; | ||||||
|  |  | ||||||
|  |  | ||||||
| use crate::cookie; | use crate::cookie; | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ use std::fmt; | |||||||
| use std::io::{self, Cursor, Read}; | use std::io::{self, Cursor, Read}; | ||||||
|  |  | ||||||
| use bytes::Bytes; | use bytes::Bytes; | ||||||
| use futures::Future; | use futures::{Future, try_ready}; | ||||||
| use hyper::{self}; | use hyper::{self}; | ||||||
|  |  | ||||||
| use crate::{async_impl}; | use crate::{async_impl}; | ||||||
|   | |||||||
| @@ -8,6 +8,8 @@ use futures::{Async, Future, Stream}; | |||||||
| use futures::future::{self, Either}; | use futures::future::{self, Either}; | ||||||
| use futures::sync::{mpsc, oneshot}; | use futures::sync::{mpsc, oneshot}; | ||||||
|  |  | ||||||
|  | use log::{trace}; | ||||||
|  |  | ||||||
| use crate::request::{Request, RequestBuilder}; | use crate::request::{Request, RequestBuilder}; | ||||||
| use crate::response::Response; | use crate::response::Response; | ||||||
| use crate::{async_impl, header, Method, IntoUrl, Proxy, RedirectPolicy, wait}; | use crate::{async_impl, header, Method, IntoUrl, Proxy, RedirectPolicy, wait}; | ||||||
|   | |||||||
| @@ -1,9 +1,9 @@ | |||||||
| use futures::Future; | use futures::{Future, try_ready}; | ||||||
| use http::uri::Scheme; | use http::uri::Scheme; | ||||||
| use hyper::client::connect::{Connect, Connected, Destination}; | use hyper::client::connect::{Connect, Connected, Destination}; | ||||||
| use tokio_io::{AsyncRead, AsyncWrite}; | use tokio_io::{AsyncRead, AsyncWrite}; | ||||||
| use tokio_timer::Timeout; | use tokio_timer::Timeout; | ||||||
|  | use log::{trace, debug}; | ||||||
|  |  | ||||||
| #[cfg(feature = "default-tls")] | #[cfg(feature = "default-tls")] | ||||||
| use native_tls::{TlsConnector, TlsConnectorBuilder}; | use native_tls::{TlsConnector, TlsConnectorBuilder}; | ||||||
| @@ -488,7 +488,7 @@ mod native_tls_async { | |||||||
|  |  | ||||||
|     use futures::{Poll, Future, Async}; |     use futures::{Poll, Future, Async}; | ||||||
|     use native_tls::{self, HandshakeError, Error, TlsConnector}; |     use native_tls::{self, HandshakeError, Error, TlsConnector}; | ||||||
|     use tokio_io::{AsyncRead, AsyncWrite}; |     use tokio_io::{AsyncRead, AsyncWrite, try_nb}; | ||||||
|  |  | ||||||
|     /// A wrapper around an underlying raw stream which implements the TLS or SSL |     /// A wrapper around an underlying raw stream which implements the TLS or SSL | ||||||
|     /// protocol. |     /// protocol. | ||||||
|   | |||||||
							
								
								
									
										45
									
								
								src/lib.rs
									
									
									
									
									
								
							
							
						
						
									
										45
									
								
								src/lib.rs
									
									
									
									
									
								
							| @@ -173,52 +173,10 @@ | |||||||
| //! [Proxy]: ./struct.Proxy.html | //! [Proxy]: ./struct.Proxy.html | ||||||
| //! [cargo-features]: https://doc.rust-lang.org/stable/cargo/reference/manifest.html#the-features-section | //! [cargo-features]: https://doc.rust-lang.org/stable/cargo/reference/manifest.html#the-features-section | ||||||
|  |  | ||||||
| extern crate base64; |  | ||||||
| extern crate bytes; |  | ||||||
| extern crate cookie as cookie_crate; | extern crate cookie as cookie_crate; | ||||||
| extern crate cookie_store; |  | ||||||
| extern crate encoding_rs; |  | ||||||
| #[macro_use] |  | ||||||
| extern crate futures; |  | ||||||
| extern crate http; |  | ||||||
| extern crate hyper; |  | ||||||
| #[cfg(feature = "hyper-011")] | #[cfg(feature = "hyper-011")] | ||||||
| pub extern crate hyper_old_types as hyper_011; | pub use hyper_old_types as hyper_011; | ||||||
| #[cfg(feature = "default-tls")] |  | ||||||
| extern crate hyper_tls; |  | ||||||
| #[macro_use] |  | ||||||
| extern crate log; |  | ||||||
| extern crate flate2; |  | ||||||
| extern crate mime; |  | ||||||
| extern crate mime_guess; |  | ||||||
| #[cfg(feature = "default-tls")] |  | ||||||
| extern crate native_tls; |  | ||||||
| extern crate serde; |  | ||||||
| extern crate serde_json; |  | ||||||
| extern crate serde_urlencoded; |  | ||||||
| extern crate time; |  | ||||||
| extern crate tokio; |  | ||||||
| extern crate tokio_executor; |  | ||||||
| #[cfg_attr(feature = "default-tls", macro_use)] |  | ||||||
| extern crate tokio_io; |  | ||||||
| extern crate tokio_timer; |  | ||||||
| #[cfg(feature = "trust-dns")] |  | ||||||
| extern crate trust_dns_resolver; |  | ||||||
| extern crate url; |  | ||||||
| extern crate uuid; |  | ||||||
| #[cfg(feature = "socks")] |  | ||||||
| extern crate socks; |  | ||||||
| #[cfg(target_os = "windows")] |  | ||||||
| extern crate winreg; |  | ||||||
|  |  | ||||||
| #[cfg(feature = "rustls-tls")] |  | ||||||
| extern crate hyper_rustls; |  | ||||||
| #[cfg(feature = "rustls-tls")] |  | ||||||
| extern crate tokio_rustls; |  | ||||||
| #[cfg(feature = "rustls-tls")] |  | ||||||
| extern crate webpki_roots; |  | ||||||
| #[cfg(feature = "rustls-tls")] |  | ||||||
| extern crate rustls; |  | ||||||
| #[cfg(test)] | #[cfg(test)] | ||||||
| #[macro_use] | #[macro_use] | ||||||
| extern crate doc_comment; | extern crate doc_comment; | ||||||
| @@ -243,7 +201,6 @@ pub use self::response::Response; | |||||||
| #[cfg(feature = "tls")] | #[cfg(feature = "tls")] | ||||||
| pub use self::tls::{Certificate, Identity}; | pub use self::tls::{Certificate, Identity}; | ||||||
|  |  | ||||||
|  |  | ||||||
| // this module must be first because of the `try_` macro | // this module must be first because of the `try_` macro | ||||||
| #[macro_use] | #[macro_use] | ||||||
| mod error; | mod error; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user