Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

Commit 418b7ba

Browse files
committed
Fix build; clean up some compile warnings
1 parent d725e27 commit 418b7ba

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/connector.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use futures_util::FutureExt;
22
#[cfg(feature = "tokio-runtime")]
33
use hyper::client::connect::HttpConnector;
44
use hyper::{client::connect::Connection, service::Service, Uri};
5-
use log::warn;
65
use rustls::ClientConfig;
76
use std::future::Future;
87
use std::pin::Pin;
@@ -37,7 +36,7 @@ impl HttpsConnector<HttpConnector> {
3736
config.root_store = match rustls_native_certs::load_native_certs() {
3837
Ok(store) => store,
3938
Err((Some(store), err)) => {
40-
warn!("Could not load all certificates: {:?}", err);
39+
log::warn!("Could not load all certificates: {:?}", err);
4140
store
4241
}
4342
Err((None, err)) => Err(err).expect("cannot access native cert store"),

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//! let res = rt.block_on(client.get(url)).unwrap();
1919
//! assert_eq!(res.status(), StatusCode::OK);
2020
//! # }
21-
//! # #[cfg(not(feature = "tokio-runtime"))]
21+
//! # #[cfg(not(all(feature = "rustls-native-certs", feature = "tokio-runtime")))]
2222
//! # fn main() {}
2323
//! ```
2424

0 commit comments

Comments
 (0)