forked from proxmox-mirrors/proxmox
http: make clippy happy
again. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
667bd8ab83
commit
910949db01
@ -155,3 +155,9 @@ impl SimpleHttp {
|
|||||||
.map_err(|err| format_err!("Error converting HTTP result data: {}", err))
|
.map_err(|err| format_err!("Error converting HTTP result data: {}", err))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Default for SimpleHttp {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self::new()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -20,7 +20,7 @@ impl ProxyConfig {
|
|||||||
// We only support/use ALL_PROXY environment
|
// We only support/use ALL_PROXY environment
|
||||||
|
|
||||||
match std::env::var_os("ALL_PROXY") {
|
match std::env::var_os("ALL_PROXY") {
|
||||||
None => return Ok(None),
|
None => Ok(None),
|
||||||
Some(all_proxy) => {
|
Some(all_proxy) => {
|
||||||
let all_proxy = match all_proxy.to_str() {
|
let all_proxy = match all_proxy.to_str() {
|
||||||
Some(s) => String::from(s),
|
Some(s) => String::from(s),
|
||||||
|
Loading…
Reference in New Issue
Block a user