mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-19 08:48:54 +00:00
Prelude: automatically import future/stream traits
This commit is contained in:
parent
8f65f63f00
commit
e2024b991a
1 changed files with 3 additions and 0 deletions
|
@ -18,6 +18,9 @@ pub use async_trait::async_trait;
|
||||||
/// Re-export the anyhow errors
|
/// Re-export the anyhow errors
|
||||||
pub use anyhow::{Error, Result};
|
pub use anyhow::{Error, Result};
|
||||||
|
|
||||||
|
/// Re-export useful future and stream utils
|
||||||
|
pub use futures_util::{future, stream, FutureExt, StreamExt, TryFutureExt, TryStreamExt};
|
||||||
|
|
||||||
/// The global app data.
|
/// The global app data.
|
||||||
pub type AppData = Arc<RwLock<TypeMap>>;
|
pub type AppData = Arc<RwLock<TypeMap>>;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue