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