Prelude: export async_trait

This commit is contained in:
Natsu Kagami 2020-09-06 22:09:39 -04:00
parent b7d398c05a
commit bd5f4f0fd2
No known key found for this signature in database
GPG key ID: F17543D4B9424B94

View file

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