From 7a35212470afa4c817d7db6704d02616fdd35c40 Mon Sep 17 00:00:00 2001 From: "Matthew M. Keeler" Date: Mon, 30 Oct 2023 14:30:37 -0400 Subject: [PATCH] fix: Remove re-export of hyper_rustls types (#59) --- eventsource-client/src/client.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/eventsource-client/src/client.rs b/eventsource-client/src/client.rs index f1c566b..f8220b2 100644 --- a/eventsource-client/src/client.rs +++ b/eventsource-client/src/client.rs @@ -30,7 +30,7 @@ use tokio::{ use crate::config::ReconnectOptions; use crate::error::{Error, Result}; -pub use hyper::client::HttpConnector; +use hyper::client::HttpConnector; use hyper_timeout::TimeoutConnector; use crate::event_parser::EventParser; @@ -40,11 +40,7 @@ use crate::retry::{BackoffRetry, RetryStrategy}; use std::error::Error as StdError; #[cfg(feature = "rustls")] -use hyper_rustls::HttpsConnector as RustlsConnector; -#[cfg(feature = "rustls")] -pub use hyper_rustls::HttpsConnectorBuilder; -#[cfg(feature = "rustls")] -pub type HttpsConnector = RustlsConnector; +use hyper_rustls::HttpsConnectorBuilder; type BoxError = Box;