From 4cdc1a3655e951266e54b5f8849b85847fc9bcc3 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Fri, 15 Jan 2021 23:01:37 +0900 Subject: [PATCH] Use char instead of one length &str --- plume-models/src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plume-models/src/config.rs b/plume-models/src/config.rs index e8912015..37b3febb 100644 --- a/plume-models/src/config.rs +++ b/plume-models/src/config.rs @@ -295,7 +295,7 @@ fn get_proxy_config() -> Option { let proxy_url = url.clone(); let only_domains: Option> = 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| {