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),