Added a prelude to reduce the amount of imports

This commit is contained in:
2023-06-29 17:33:26 +03:00
parent 580641bcf4
commit c0fcb41575
32 changed files with 78 additions and 155 deletions

14
src/prelude.rs Normal file
View File

@@ -0,0 +1,14 @@
pub(crate) use crate::{
commands::Command,
errors::*,
markups::*,
models::*,
state::State,
state::{Handler, MainDialogue, PackagedHandler},
utils::*,
};
pub(crate) use cryptography::prelude::*;
pub(crate) use entity::prelude::*;
pub(crate) use futures::{StreamExt, TryStreamExt};
pub(crate) use sea_orm::prelude::*;
pub(crate) use teloxide::{adaptors::Throttle, prelude::*};