Fix warnings: unused imports + forgotten pub on GetMe::new

This commit is contained in:
Waffle 2019-11-27 16:16:44 +03:00
parent e673335e1f
commit ef15a4167f
6 changed files with 5 additions and 9 deletions

View file

@ -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},
}; };

View file

@ -1,6 +1,4 @@
use crate::{ use crate::{
bot::Bot,
network,
requests::{json, Method}, requests::{json, Method},
types::File, types::File,
}; };

View file

@ -26,7 +26,7 @@ impl dynamic::Payload for GetMe {
} }
impl GetMe { impl GetMe {
fn new() -> Self { pub fn new() -> Self {
GetMe {} GetMe {}
} }
} }

View file

@ -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,
}; };

View file

@ -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},
}; };

View file

@ -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},
}; };