diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2021-08-29 23:16:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-29 23:16:20 +0000 |
commit | 6c7519292f029506947cfcd8d7eb3961b9657650 (patch) | |
tree | d10c65b3d8c7e1c8699c7542f53708bbb785c422 /src | |
parent | Merge pull request #585 from svenstaro/upload-artifact (diff) | |
parent | Fix stderr output in test index_fallback_to_listing (diff) | |
download | miniserve-6c7519292f029506947cfcd8d7eb3961b9657650.tar.gz miniserve-6c7519292f029506947cfcd8d7eb3961b9657650.zip |
Merge pull request #586 from svenstaro/fix-warnings
Fix some warnings when building without TLS
Diffstat (limited to 'src')
-rw-r--r-- | src/config.rs | 8 |
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")] |