Prelude: automatically import future/stream traits

This commit is contained in:
Natsu Kagami 2020-09-03 19:42:07 -04:00
parent 8f65f63f00
commit e2024b991a
Signed by: nki
GPG key ID: 73376E117CD20735

View file

@ -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>>;