Apply suggestions from code review

Co-authored-by: Temirkhan Myrzamadi <hirrolot@gmail.com>
This commit is contained in:
Waffle Lapkin 2020-08-21 14:31:59 +03:00 committed by GitHub
parent ac4f7f88e7
commit de9ce863d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,7 +69,7 @@ impl Bot {
/// If it cannot create [`reqwest::Client`].
///
/// [`reqwest::Client`]: https://docs.rs/reqwest/latest/reqwest/struct.Client.html
#[deprecated = "Deprecated in favour of BotBuilder because the later provides more options (notably default parse_mode and env defaults)"]
#[deprecated = "Deprecated in favour of BotBuilder because the later provides more options (notably default parse_mode)"]
pub fn new<S>(token: S) -> Self
where
S: Into<String>,
@ -87,7 +87,7 @@ impl Bot {
///
/// [`reqwest::Client`]: https://docs.rs/reqwest/latest/reqwest/struct.Client.html
/// [issue 223]: https://github.com/teloxide/teloxide/issues/223
#[deprecated = "Deprecated in favour of BotBuilder because the later provides more options (notably default parse_mode and env defaults)"]
#[deprecated = "Deprecated in favour of BotBuilder because the later provides more options (notably default parse_mode)"]
pub fn with_client<S>(token: S, client: Client) -> Self
where
S: Into<String>,