mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
chore(router): clippy::use_self (#203)
This commit is contained in:
@ -20,10 +20,10 @@ impl ProxyType {
|
||||
use std::env::var;
|
||||
|
||||
match self {
|
||||
ProxyType::Http => var(HTTP_PROXY)
|
||||
Self::Http => var(HTTP_PROXY)
|
||||
.or_else(|_| proxy.http_url.clone().ok_or(()))
|
||||
.ok(),
|
||||
ProxyType::Https => var(HTTPS_PROXY)
|
||||
Self::Https => var(HTTPS_PROXY)
|
||||
.or_else(|_| proxy.https_url.clone().ok_or(()))
|
||||
.ok(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user