diff options
author | doug tangren <d.tangren@gmail.com> | 2018-12-24 13:11:02 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-24 13:11:02 +0900 |
commit | ebe4a2d80dffb89d1fbceb14dbac3dc6da004fb8 (patch) | |
tree | ab56800af4f921388035fd6d9f318f9ec0bd97cc /src/transport.rs | |
parent | 3c06c3a11ba1f7d362bde8b14d94b07b529850e8 (diff) |
update to 2018 edition (#141)
* update to 2018 edition
* remove more externs
* bump version
Diffstat (limited to 'src/transport.rs')
-rw-r--r-- | src/transport.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/transport.rs b/src/transport.rs index 41d8694..432c5df 100644 --- a/src/transport.rs +++ b/src/transport.rs @@ -1,6 +1,6 @@ //! Transports for communicating with the docker daemon -use self::super::{Error, Result}; +use crate::{Error, Result}; use futures::{ future::{self, Either}, Future, IntoFuture, Stream, @@ -14,7 +14,9 @@ use hyper_openssl::HttpsConnector; use hyperlocal::UnixConnector; #[cfg(feature = "unix-socket")] use hyperlocal::Uri as DomainUri; +use log::debug; use mime::Mime; +use serde_derive::{Deserialize, Serialize}; use serde_json; use std::fmt; use tokio_io::{AsyncRead, AsyncWrite}; @@ -226,12 +228,12 @@ impl Transport { method: Method, endpoint: &str, body: Option<(B, Mime)>, - ) -> impl Future<Item = ::tty::Multiplexed, Error = Error> + ) -> impl Future<Item = crate::tty::Multiplexed, Error = Error> where B: Into<Body> + 'static, { self.stream_upgrade(method, endpoint, body) - .map(|u| ::tty::Multiplexed::new(u)) + .map(|u| crate::tty::Multiplexed::new(u)) } /// Extract the error message content from an HTTP response that |