From a4309ef4d860ecc0f1b1eda25101c0bc4f44077f Mon Sep 17 00:00:00 2001 From: Waffle Date: Sat, 7 Dec 2019 19:42:36 +0300 Subject: [PATCH] clippy --- src/bot/execute.rs | 6 +++--- src/lib.rs | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/bot/execute.rs b/src/bot/execute.rs index 070fbe04..3ec0d418 100644 --- a/src/bot/execute.rs +++ b/src/bot/execute.rs @@ -12,7 +12,7 @@ impl Bot { /// ## Example /// ```no_run /// # use telebofr::{Bot, requests::payloads::SendMessage}; - /// # #[tokio::main] async fn main() { + /// # #[tokio::main] async fn main_() { /// let bot = Bot::new("TOKEN"); /// let payload = SendMessage::new(123456, "text"); /// bot.execute_dyn(&payload).await; @@ -49,7 +49,7 @@ impl Bot { /// ## Example /// ```no_run /// # use telebofr::{Bot, requests::payloads::SendMessage}; - /// # #[tokio::main] async fn main() { + /// # #[tokio::main] async fn main_() { /// let bot = Bot::new("TOKEN"); /// let payload = SendMessage::new(123456, "text"); /// bot.execute_json(&payload).await; @@ -74,7 +74,7 @@ impl Bot { /// ## Example /// ```no_run /// # use telebofr::{Bot, requests::payloads::SendAnimation, types::InputFile}; - /// # #[tokio::main] async fn main() { + /// # #[tokio::main] async fn main_() { /// let bot = Bot::new("TOKEN"); /// let payload = SendAnimation::new( /// 123456, diff --git a/src/lib.rs b/src/lib.rs index 36f21277..65bfbbbf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,3 @@ -#![allow(clippy::needless_doctest_main)] #![allow(clippy::unit_arg)] // TODO #![allow(clippy::ptr_arg)] // TODO