Skip to content

Commit

Permalink
Fix build; clean up some compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ctz committed Dec 26, 2020
1 parent d725e27 commit 418b7ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use futures_util::FutureExt;
#[cfg(feature = "tokio-runtime")]
use hyper::client::connect::HttpConnector;
use hyper::{client::connect::Connection, service::Service, Uri};
use log::warn;
use rustls::ClientConfig;
use std::future::Future;
use std::pin::Pin;
Expand Down Expand Up @@ -37,7 +36,7 @@ impl HttpsConnector<HttpConnector> {
config.root_store = match rustls_native_certs::load_native_certs() {
Ok(store) => store,
Err((Some(store), err)) => {
warn!("Could not load all certificates: {:?}", err);
log::warn!("Could not load all certificates: {:?}", err);
store
}
Err((None, err)) => Err(err).expect("cannot access native cert store"),
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//! let res = rt.block_on(client.get(url)).unwrap();
//! assert_eq!(res.status(), StatusCode::OK);
//! # }
//! # #[cfg(not(feature = "tokio-runtime"))]
//! # #[cfg(not(all(feature = "rustls-native-certs", feature = "tokio-runtime")))]
//! # fn main() {}
//! ```
Expand Down

0 comments on commit 418b7ba

Please sign in to comment.