From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 5009270A2B for ; Fri, 14 May 2021 15:45:41 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 464B317B3D for ; Fri, 14 May 2021 15:45:11 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id ABCF117B18 for ; Fri, 14 May 2021 15:45:09 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 84EFB46568 for ; Fri, 14 May 2021 15:45:09 +0200 (CEST) From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= To: pbs-devel@lists.proxmox.com Date: Fri, 14 May 2021 15:44:47 +0200 Message-Id: <20210514134457.1447930-12-f.gruenbichler@proxmox.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210514134457.1447930-1-f.gruenbichler@proxmox.com> References: <20210514134457.1447930-1-f.gruenbichler@proxmox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.015 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [simple.rs] Subject: [pbs-devel] [PATCH proxmox 11/13] http: make clippy happy X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2021 13:45:41 -0000 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 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