diff --git a/src/stream.rs b/src/stream.rs index 5850066..4a36cbb 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -330,6 +330,7 @@ fn configure_certs(config: &mut rustls::ClientConfig) { #[cfg(feature = "tls")] pub(crate) fn connect_https(unit: &Unit, hostname: &str) -> Result { use once_cell::sync::Lazy; + use rustls::Session; use std::sync::Arc; static TLS_CONF: Lazy> = Lazy::new(|| { @@ -349,10 +350,14 @@ pub(crate) fn connect_https(unit: &Unit, hostname: &str) -> Result