mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-19 16:58:55 +00:00
Prelude: export async_trait
This commit is contained in:
parent
b7d398c05a
commit
bd5f4f0fd2
1 changed files with 5 additions and 0 deletions
|
@ -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};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue