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 futures::StreamExt;
use reqwest::r#async::{Chunk, Client}; use reqwest::r#async::{Chunk, Client};
use tokio::{ use tokio::{
io::{AsyncWrite, AsyncWriteExt}, io::{AsyncWrite, AsyncWriteExt},
stream::Stream, stream::Stream,
}; };
use bytes::Buf;
use crate::{ use crate::{
network::{file_url, TELEGRAM_API_URL}, 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 serde::{de::DeserializeOwned, Serialize};
use crate::{ use crate::{
network::{method_url, TELEGRAM_API_URL, TelegramResponse}, network::{method_url, TelegramResponse, TELEGRAM_API_URL},
requests::ResponseResult, requests::ResponseResult,
RequestError, RequestError,
}; };

View file

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