Browse Source

[Telegram] clippy warnings fixed

Slava Barinov 1 năm trước cách đây
mục cha
commit
620e0a040c
1 tập tin đã thay đổi với 5 bổ sung3 xóa
  1. 5 3
      src/telegram.rs

+ 5 - 3
src/telegram.rs

@@ -13,11 +13,13 @@ use derive_more::From;
 use std::fmt::Debug;
 use std::str::FromStr;
 use std::sync::Arc;
-use teloxide::types::*;
-use teloxide::types::{InlineKeyboardButton, InlineKeyboardMarkup};
+use teloxide::types::{
+    InlineKeyboardButton, InlineKeyboardButtonKind, InlineKeyboardMarkup, InputFile, MediaKind,
+    MessageKind, ReplyMarkup,
+};
 use teloxide::{
     dispatching::dialogue::InMemStorage, net::Download, prelude::*, types::File as TgFile,
-    utils::command::BotCommands, Bot, DownloadError, RequestError,
+    utils::command::BotCommands, DownloadError, RequestError,
 };
 use thiserror::Error;
 use tokio::fs::File;