mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-26 13:31:02 +00:00
Use char instead of one length &str
This commit is contained in:
parent
bbd415c392
commit
4cdc1a3655
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ fn get_proxy_config() -> Option<ProxyConfig> {
|
|||
let proxy_url = url.clone();
|
||||
let only_domains: Option<HashSet<String>> = var("PROXY_DOMAINS")
|
||||
.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 only_domains = only_domains.clone();
|
||||
reqwest::Proxy::custom(move |url| {
|
||||
|
|
Loading…
Reference in a new issue