Skip to content

Commit

Permalink
Remove futures-util
Browse files Browse the repository at this point in the history
  • Loading branch information
paolobarbolini committed Jan 8, 2021
1 parent 5a30ca5 commit fdff008
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ repository = "https://github.com/ctz/hyper-rustls"
[dependencies]
log = "0.4.4"
ct-logs = { version = "^0.8", optional = true }
futures-util = "0.3.1"
hyper = { version = "0.14", default-features = false, features = ["client", "http1"] }
rustls = "0.19"
rustls-native-certs = { version = "0.5.0", optional = true }
Expand All @@ -25,6 +24,7 @@ webpki-roots = { version = "0.21", optional = true }
async-stream = "0.3.0"
tokio = { version = "1.0", features = ["io-std", "macros", "net", "rt-multi-thread"] }
hyper = { version = "0.14", features = ["full"] }
futures-util = { version = "0.3.1", default-features = false }

[features]
default = ["native-tokio"]
Expand Down
5 changes: 2 additions & 3 deletions src/connector.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use futures_util::FutureExt;
#[cfg(feature = "tokio-runtime")]
use hyper::client::connect::HttpConnector;
use hyper::{client::connect::Connection, service::Service, Uri};
Expand Down Expand Up @@ -119,7 +118,7 @@ where

Ok(MaybeHttpsStream::Http(tcp))
};
f.boxed()
Box::pin(f)
} else {
let cfg = self.tls_config.clone();
let hostname = dst.host().unwrap_or_default().to_string();
Expand All @@ -136,7 +135,7 @@ where
.map_err(|e| io::Error::new(io::ErrorKind::Other, e))?;
Ok(MaybeHttpsStream::Https(tls))
};
f.boxed()
Box::pin(f)
}
}
}

0 comments on commit fdff008

Please sign in to comment.