mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-03 17:52:12 +01:00
Fix warnings: unused imports + forgotten pub
on GetMe::new
This commit is contained in:
parent
e673335e1f
commit
ef15a4167f
6 changed files with 5 additions and 9 deletions
|
@ -2,7 +2,7 @@ use serde::de::DeserializeOwned;
|
|||
|
||||
use crate::{
|
||||
Bot,
|
||||
requests::{dynamic, json, multipart, Method, ResponseResult},
|
||||
requests::{dynamic, json, multipart, ResponseResult},
|
||||
network::{request_dynamic, request_json, request_multipart},
|
||||
};
|
||||
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
use crate::{
|
||||
bot::Bot,
|
||||
network,
|
||||
requests::{json, Method},
|
||||
types::File,
|
||||
};
|
||||
|
|
|
@ -26,7 +26,7 @@ impl dynamic::Payload for GetMe {
|
|||
}
|
||||
|
||||
impl GetMe {
|
||||
fn new() -> Self {
|
||||
pub fn new() -> Self {
|
||||
GetMe {}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
use async_trait::async_trait;
|
||||
|
||||
use crate::{
|
||||
requests::{ResponseResult, json, Method, dynamic},
|
||||
requests::{json, Method, dynamic},
|
||||
types::Update,
|
||||
};
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use reqwest::multipart::Form;
|
||||
|
||||
use crate::{
|
||||
requests::{ResponseResult, multipart, Method, dynamic, form_builder::FormBuilder},
|
||||
requests::{multipart, Method, dynamic, form_builder::FormBuilder},
|
||||
types::{ChatId, InputFile, Message, ParseMode, ReplyMarkup},
|
||||
};
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use crate::{
|
||||
requests::{ResponseResult, json, Method, dynamic},
|
||||
requests::{json, Method, dynamic},
|
||||
types::{ChatId, Message, ParseMode, ReplyMarkup},
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue