a few fixes

This commit is contained in:
Sean McArthur
2016-11-08 18:56:49 -08:00
parent 1741efc089
commit 4f9e39829c
3 changed files with 21 additions and 10 deletions

View File

@@ -69,12 +69,6 @@ impl Client {
}
}
#[cfg(not(feature = "tls"))]
fn new_hyper_client() -> ::Result<::hyper::Client> {
Ok(::hyper::Client::new())
}
#[cfg(feature = "tls")]
fn new_hyper_client() -> ::Result<::hyper::Client> {
use tls::TlsClient;
Ok(::hyper::Client::with_connector(