This commit is contained in:
Waffle 2019-12-07 19:42:36 +03:00
parent 852df2e90e
commit a4309ef4d8
2 changed files with 3 additions and 4 deletions

View file

@ -12,7 +12,7 @@ impl Bot {
/// ## Example /// ## Example
/// ```no_run /// ```no_run
/// # use telebofr::{Bot, requests::payloads::SendMessage}; /// # use telebofr::{Bot, requests::payloads::SendMessage};
/// # #[tokio::main] async fn main() { /// # #[tokio::main] async fn main_() {
/// let bot = Bot::new("TOKEN"); /// let bot = Bot::new("TOKEN");
/// let payload = SendMessage::new(123456, "text"); /// let payload = SendMessage::new(123456, "text");
/// bot.execute_dyn(&payload).await; /// bot.execute_dyn(&payload).await;
@ -49,7 +49,7 @@ impl Bot {
/// ## Example /// ## Example
/// ```no_run /// ```no_run
/// # use telebofr::{Bot, requests::payloads::SendMessage}; /// # use telebofr::{Bot, requests::payloads::SendMessage};
/// # #[tokio::main] async fn main() { /// # #[tokio::main] async fn main_() {
/// let bot = Bot::new("TOKEN"); /// let bot = Bot::new("TOKEN");
/// let payload = SendMessage::new(123456, "text"); /// let payload = SendMessage::new(123456, "text");
/// bot.execute_json(&payload).await; /// bot.execute_json(&payload).await;
@ -74,7 +74,7 @@ impl Bot {
/// ## Example /// ## Example
/// ```no_run /// ```no_run
/// # use telebofr::{Bot, requests::payloads::SendAnimation, types::InputFile}; /// # use telebofr::{Bot, requests::payloads::SendAnimation, types::InputFile};
/// # #[tokio::main] async fn main() { /// # #[tokio::main] async fn main_() {
/// let bot = Bot::new("TOKEN"); /// let bot = Bot::new("TOKEN");
/// let payload = SendAnimation::new( /// let payload = SendAnimation::new(
/// 123456, /// 123456,

View file

@ -1,4 +1,3 @@
#![allow(clippy::needless_doctest_main)]
#![allow(clippy::unit_arg)] // TODO #![allow(clippy::unit_arg)] // TODO
#![allow(clippy::ptr_arg)] // TODO #![allow(clippy::ptr_arg)] // TODO