aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/config.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/config.rs b/src/config.rs
index e2b4c3a..e47ffc1 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -1,11 +1,13 @@
+#[cfg(feature = "tls")]
+use std::{fs::File, io::BufReader};
use std::{
- fs::File,
- io::BufReader,
net::{IpAddr, Ipv4Addr, Ipv6Addr},
path::PathBuf,
};
-use anyhow::{anyhow, Context, Result};
+#[cfg(feature = "tls")]
+use anyhow::anyhow;
+use anyhow::{Context, Result};
use http::HeaderMap;
#[cfg(feature = "tls")]