mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-05 18:26:59 +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::{
|
use crate::{
|
||||||
Bot,
|
Bot,
|
||||||
requests::{dynamic, json, multipart, Method, ResponseResult},
|
requests::{dynamic, json, multipart, ResponseResult},
|
||||||
network::{request_dynamic, request_json, request_multipart},
|
network::{request_dynamic, request_json, request_multipart},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
use crate::{
|
use crate::{
|
||||||
bot::Bot,
|
|
||||||
network,
|
|
||||||
requests::{json, Method},
|
requests::{json, Method},
|
||||||
types::File,
|
types::File,
|
||||||
};
|
};
|
||||||
|
|
|
@ -26,7 +26,7 @@ impl dynamic::Payload for GetMe {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl GetMe {
|
impl GetMe {
|
||||||
fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
GetMe {}
|
GetMe {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
use async_trait::async_trait;
|
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
requests::{ResponseResult, json, Method, dynamic},
|
requests::{json, Method, dynamic},
|
||||||
types::Update,
|
types::Update,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
use reqwest::multipart::Form;
|
use reqwest::multipart::Form;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
requests::{ResponseResult, multipart, Method, dynamic, form_builder::FormBuilder},
|
requests::{multipart, Method, dynamic, form_builder::FormBuilder},
|
||||||
types::{ChatId, InputFile, Message, ParseMode, ReplyMarkup},
|
types::{ChatId, InputFile, Message, ParseMode, ReplyMarkup},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
use crate::{
|
use crate::{
|
||||||
requests::{ResponseResult, json, Method, dynamic},
|
requests::{json, Method, dynamic},
|
||||||
types::{ChatId, Message, ParseMode, ReplyMarkup},
|
types::{ChatId, Message, ParseMode, ReplyMarkup},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue