[pbs-devel] [PATCH proxmox 11/13] http: make clippy happy

Fabian Grünbichler f.gruenbichler at proxmox.com
Fri May 14 15:44:47 CEST 2021


again.

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 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 110fa55..6783781 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 7e93a47..9eac3bd 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),
-- 
2.20.1






More information about the pbs-devel mailing list