From bd5f4f0fd27821283957be0aa3c2c5456001a9f1 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Sun, 6 Sep 2020 22:09:39 -0400 Subject: [PATCH] Prelude: export async_trait --- youmubot-prelude/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/youmubot-prelude/src/lib.rs b/youmubot-prelude/src/lib.rs index dca3b8a..ed68aed 100644 --- a/youmubot-prelude/src/lib.rs +++ b/youmubot-prelude/src/lib.rs @@ -1,3 +1,5 @@ +/// Module `prelude` provides a sane set of default imports that can be used inside +/// a Youmubot source file. pub use serenity::prelude::*; use std::sync::Arc; @@ -10,6 +12,9 @@ pub use announcer::{Announcer, AnnouncerHandler}; pub use args::{Duration, UsernameArg}; pub use pagination::paginate; +/// Re-exporting async_trait helps with implementing Announcer. +pub use async_trait::async_trait; + /// Re-export the anyhow errors pub use anyhow::{Error, Result};