mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +01:00
Fix the docs of client_from_env
This commit is contained in:
parent
55ab94b1c4
commit
4c78414771
1 changed files with 1 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue