Merge pull request #42 from teloxide/use_2018_module_style

use 2018 module style
This commit is contained in:
Temirkhan Myrzamadi 2021-01-25 23:33:50 +06:00 committed by GitHub
commit 53f1c6d4d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 10 additions and 11 deletions

View file

@ -6,6 +6,9 @@
//! ## How it works //! ## How it works
//! //!
//! You better not know... //! You better not know...
//!
//! This whole module is an awful hack and we'll probably stop using it in next
//! versions (in favor of something less automatic, but more simple).
mod serializers; mod serializers;
mod unserializers; mod unserializers;

View file

@ -190,5 +190,10 @@ mod passport_data;
mod passport_element_error; mod passport_element_error;
mod passport_file; mod passport_file;
pub use non_telegram_types::*; pub use non_telegram_types::{country_code::*, currency::*, non_strict_vec::*};
mod non_telegram_types; mod non_telegram_types {
pub(super) mod country_code;
pub(super) mod currency;
pub(crate) mod mime;
pub(super) mod non_strict_vec;
}

View file

@ -1,9 +0,0 @@
pub use country_code::*;
pub use currency::*;
pub use non_strict_vec::*;
mod country_code;
mod currency;
mod non_strict_vec;
pub(crate) mod mime;