From e2024b991a2fafc3c25f62d0c383c257b0ac2b02 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Thu, 3 Sep 2020 19:42:07 -0400 Subject: [PATCH] Prelude: automatically import future/stream traits --- youmubot-prelude/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/youmubot-prelude/src/lib.rs b/youmubot-prelude/src/lib.rs index ed68aed..1efc063 100644 --- a/youmubot-prelude/src/lib.rs +++ b/youmubot-prelude/src/lib.rs @@ -18,6 +18,9 @@ pub use async_trait::async_trait; /// Re-export the anyhow errors 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. pub type AppData = Arc>;