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()