Fix the docs of client_from_env

This commit is contained in:
Temirkhan Myrzamadi 2020-07-25 04:08:04 +06:00
parent 55ab94b1c4
commit 4c78414771

View file

@ -17,9 +17,7 @@ pub fn client_from_env() -> reqwest::Client {
match std::env::var("TELOXIDE_PROXY").ok() { match std::env::var("TELOXIDE_PROXY").ok() {
Some(proxy) => Client::builder() Some(proxy) => Client::builder()
.proxy(Proxy::all(&proxy).expect("creating reqwest::Proxy")) .proxy(Proxy::all(&proxy).expect("creating reqwest::Proxy")),
.build()
.expect("creating reqwest::Client"),
None => sound_bot(), None => sound_bot(),
} }
.build() .build()