mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Use edition-2018 style modules
Use `module_name.rs` instead of `module_name/mod.rs`. Pros: - It's easier to find the module file (especially for modules with lots of submodules like `types`) - Module file name is not 'magical'
This commit is contained in:
parent
8e011b7e60
commit
55c02e3311
6 changed files with 7 additions and 11 deletions
|
@ -190,5 +190,10 @@ mod passport_data;
|
|||
mod passport_element_error;
|
||||
mod passport_file;
|
||||
|
||||
pub use non_telegram_types::*;
|
||||
mod non_telegram_types;
|
||||
pub use non_telegram_types::{country_code::*, currency::*, non_strict_vec::*};
|
||||
mod non_telegram_types {
|
||||
pub(super) mod country_code;
|
||||
pub(super) mod currency;
|
||||
pub(crate) mod mime;
|
||||
pub(super) mod non_strict_vec;
|
||||
}
|
|
@ -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;
|
Loading…
Add table
Reference in a new issue