diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-03-29 19:56:08 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-03-29 19:56:08 -0700 |
commit | 1553ed113f0e12d8e36b67d92a746131695a6612 (patch) | |
tree | 16109e64ea580c4bf51ac29c0fa0c578960b104d /src/main.rs | |
parent | a7a56ece82aa920bd7cdeadb91db6fb123aeb58d (diff) | |
download | es-public-proxy-1553ed113f0e12d8e36b67d92a746131695a6612.tar.gz es-public-proxy-1553ed113f0e12d8e36b67d92a746131695a6612.zip |
clippy/fmt cleanv0.2.6
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 761c020..2075535 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,7 +2,6 @@ use hyper::service::{make_service_fn, service_fn}; use hyper::{header::HeaderValue, Body, Client, Request, Response, Server}; use std::env; use std::net::SocketAddr; -use toml; #[macro_use] extern crate log; @@ -124,7 +123,7 @@ fn load_config() -> ProxyConfig { } // then try environment variables - if let None = config_path { + if config_path.is_none() { config_path = std::env::var("ES_PUBLIC_PROXY_CONFIG_PATH").ok(); } |