Format the code

This commit is contained in:
Temirkhan Myrzamadi 2019-09-21 05:05:48 +06:00
parent 788006f427
commit 6b0e05cdf7
4 changed files with 9 additions and 10 deletions

View file

@ -1,10 +1,10 @@
use bytes::Buf;
use futures::StreamExt;
use reqwest::r#async::{Chunk, Client};
use tokio::{
io::{AsyncWrite, AsyncWriteExt},
stream::Stream,
};
use bytes::Buf;
use crate::{
network::{file_url, TELEGRAM_API_URL},

View file

@ -3,7 +3,7 @@ use reqwest::r#async::{multipart::Form, Client, Response};
use serde::{de::DeserializeOwned, Serialize};
use crate::{
network::{method_url, TELEGRAM_API_URL, TelegramResponse},
network::{method_url, TelegramResponse, TELEGRAM_API_URL},
requests::ResponseResult,
RequestError,
};

View file

@ -11,6 +11,8 @@ pub use self::{
chosen_inline_result::ChosenInlineResult,
contact::Contact,
document::Document,
encrypted_credintials::EncryptedCredentials,
encrypted_passport_element::{ElementType, EncryptedPassportElement},
file::File,
force_reply::ForceReply,
game::Game,
@ -54,6 +56,8 @@ pub use self::{
message_entity::MessageEntity,
order_info::OrderInfo,
parse_mode::ParseMode,
passport_data::PassportData,
passport_file::PassportFile,
photo_size::PhotoSize,
poll::{Poll, PollOption},
pre_checkout_query::PreCheckoutQuery,
@ -76,11 +80,6 @@ pub use self::{
video_note::VideoNote,
voice::Voice,
webhook_info::WebhookInfo,
encrypted_passport_element::{ElementType, EncryptedPassportElement},
passport_data::PassportData,
encrypted_credintials::EncryptedCredentials,
passport_file::PassportFile,
};
mod animation;
@ -160,7 +159,7 @@ mod inline_query_result_venue;
mod inline_query_result_video;
mod inline_query_result_voice;
mod encrypted_credintials;
mod encrypted_passport_element;
mod passport_data;
mod encrypted_credintials;
mod passport_file;
mod passport_file;

View file

@ -3,4 +3,4 @@ pub struct PassportFile {
pub file_id: String,
pub file_size: u64,
pub file_date: u64,
}
}