http: make clippy happy

again.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2021-05-14 15:44:47 +02:00 committed by Dietmar Maurer
parent 667bd8ab83
commit 910949db01
2 changed files with 7 additions and 1 deletions

View File

@ -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()
}
}

View File

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