From 910949db01dd7855a8ee96e4377b642abed5f408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Fri, 14 May 2021 15:44:47 +0200 Subject: [PATCH] http: make clippy happy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit again. Signed-off-by: Fabian Grünbichler --- proxmox-http/src/http/client/simple.rs | 6 ++++++ proxmox-http/src/http/proxy_config.rs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/proxmox-http/src/http/client/simple.rs b/proxmox-http/src/http/client/simple.rs index 110fa557..6783781c 100644 --- a/proxmox-http/src/http/client/simple.rs +++ b/proxmox-http/src/http/client/simple.rs @@ -155,3 +155,9 @@ impl SimpleHttp { .map_err(|err| format_err!("Error converting HTTP result data: {}", err)) } } + +impl Default for SimpleHttp { + fn default() -> Self { + Self::new() + } +} diff --git a/proxmox-http/src/http/proxy_config.rs b/proxmox-http/src/http/proxy_config.rs index 7e93a477..9eac3bd6 100644 --- a/proxmox-http/src/http/proxy_config.rs +++ b/proxmox-http/src/http/proxy_config.rs @@ -20,7 +20,7 @@ impl ProxyConfig { // We only support/use ALL_PROXY environment match std::env::var_os("ALL_PROXY") { - None => return Ok(None), + None => Ok(None), Some(all_proxy) => { let all_proxy = match all_proxy.to_str() { Some(s) => String::from(s),