From a89150eee7aea6d93dadb3007fcb551afadd8d76 Mon Sep 17 00:00:00 2001 From: Martin Algesten Date: Sat, 30 Mar 2019 11:34:35 +0100 Subject: [PATCH] fix warning in --no-default-features --- src/stream.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream.rs b/src/stream.rs index e95d481..aaf0d2a 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -1,6 +1,5 @@ use crate::agent::Unit; use crate::error::Error; -use lazy_static::lazy_static; use std::io::{Cursor, Read, Result as IoResult, Write}; use std::net::SocketAddr; use std::net::TcpStream; @@ -100,6 +99,7 @@ pub(crate) fn connect_http(unit: &Unit) -> Result { #[cfg(feature = "tls")] pub(crate) fn connect_https(unit: &Unit) -> Result { use std::sync::Arc; + use lazy_static::lazy_static; lazy_static! { static ref TLS_CONF: Arc = {