Use char instead of one length &str
This commit is contained in:
parent
bbd415c392
commit
4cdc1a3655
@ -295,7 +295,7 @@ fn get_proxy_config() -> Option<ProxyConfig> {
|
|||||||
let proxy_url = url.clone();
|
let proxy_url = url.clone();
|
||||||
let only_domains: Option<HashSet<String>> = var("PROXY_DOMAINS")
|
let only_domains: Option<HashSet<String>> = var("PROXY_DOMAINS")
|
||||||
.ok()
|
.ok()
|
||||||
.map(|ods| ods.split(",").map(str::to_owned).collect());
|
.map(|ods| ods.split(',').map(str::to_owned).collect());
|
||||||
let proxy = if let Some(ref only_domains) = only_domains {
|
let proxy = if let Some(ref only_domains) = only_domains {
|
||||||
let only_domains = only_domains.clone();
|
let only_domains = only_domains.clone();
|
||||||
reqwest::Proxy::custom(move |url| {
|
reqwest::Proxy::custom(move |url| {
|
||||||
|
Loading…
Reference in New Issue
Block a user