mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-03 09:49:07 +01:00
clippy
This commit is contained in:
parent
852df2e90e
commit
a4309ef4d8
2 changed files with 3 additions and 4 deletions
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue