From 413e8bf4aadaf73ef6dc8ce659f548ba31d74646 Mon Sep 17 00:00:00 2001 From: Jacob Hoffman-Andrews Date: Sun, 21 Feb 2021 13:32:42 -0800 Subject: [PATCH] Fix imports --- src/stream.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream.rs b/src/stream.rs index b491fdd..4a36cbb 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -1,5 +1,4 @@ use log::debug; -use rustls::Session; use std::io::{self, BufRead, BufReader, Read, Write}; use std::net::SocketAddr; use std::net::TcpStream; @@ -331,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(|| {