From 4c78414771f269a7ee7fbe8b29f3e365c1c2b275 Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Sat, 25 Jul 2020 04:08:04 +0600 Subject: [PATCH] Fix the docs of client_from_env --- src/utils/client_from_env.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils/client_from_env.rs b/src/utils/client_from_env.rs index e833388c..373b9979 100644 --- a/src/utils/client_from_env.rs +++ b/src/utils/client_from_env.rs @@ -17,9 +17,7 @@ pub fn client_from_env() -> reqwest::Client { match std::env::var("TELOXIDE_PROXY").ok() { Some(proxy) => Client::builder() - .proxy(Proxy::all(&proxy).expect("creating reqwest::Proxy")) - .build() - .expect("creating reqwest::Client"), + .proxy(Proxy::all(&proxy).expect("creating reqwest::Proxy")), None => sound_bot(), } .build()