aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2021-08-29 22:39:40 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2021-08-29 22:39:40 +0000
commitb6e51c9781585e6982e9ccb7992c87304ee2946a (patch)
treefe317184ad5ce0da3b1aa022bb14efbbfcf606ce /src
parentMerge pull request #585 from svenstaro/upload-artifact (diff)
downloadminiserve-b6e51c9781585e6982e9ccb7992c87304ee2946a.tar.gz
miniserve-b6e51c9781585e6982e9ccb7992c87304ee2946a.zip
Fix some warnings when building without TLS
Diffstat (limited to 'src')
-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")]