diff --git a/src/proxy.rs b/src/proxy.rs index f2afabe..378b60c 100644 --- a/src/proxy.rs +++ b/src/proxy.rs @@ -279,11 +279,8 @@ impl Proxy { // Custom *may* match 'http', so assume so. | Intercept::Custom(_) => true, Intercept::System(ref system) => { - if let Some(proxy) = system.get("http") { - match proxy { - ProxyScheme::Http { auth, .. } => auth.is_some(), - _ => false, - } + if let Some(ProxyScheme::Http { auth, .. }) = system.get("http") { + auth.is_some() } else { false }