diff options
| author | Zeyla Hellyer <[email protected]> | 2017-09-18 20:28:59 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-09-18 20:28:59 -0700 |
| commit | f42f6175a0aa96770f5665f00ae8e61453a5e6fa (patch) | |
| tree | ab346aff6133ebc37af5d83c2fa5aab6aedccaa4 /src/framework/standard/command.rs | |
| parent | Add Send/Sync to framework items (diff) | |
| download | serenity-f42f6175a0aa96770f5665f00ae8e61453a5e6fa.tar.xz serenity-f42f6175a0aa96770f5665f00ae8e61453a5e6fa.zip | |
Also rustfmt
Diffstat (limited to 'src/framework/standard/command.rs')
| -rw-r--r-- | src/framework/standard/command.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/framework/standard/command.rs b/src/framework/standard/command.rs index 66b6490..96c2f7d 100644 --- a/src/framework/standard/command.rs +++ b/src/framework/standard/command.rs @@ -4,11 +4,16 @@ use client::Context; use model::{Message, Permissions}; use std::collections::HashMap; -pub type Check = Fn(&mut Context, &Message, &mut Args, &Arc<Command>) -> bool + Send + Sync + 'static; +pub type Check = Fn(&mut Context, &Message, &mut Args, &Arc<Command>) -> bool + + Send + + Sync + + 'static; pub type Exec = Fn(&mut Context, &Message, Args) -> Result<(), String> + Send + Sync + 'static; pub type Help = Fn(&mut Context, &Message, HashMap<String, Arc<CommandGroup>>, Args) -> Result<(), String> - + Send + Sync + 'static; + + Send + + Sync + + 'static; pub type BeforeHook = Fn(&mut Context, &Message, &str) -> bool + Send + Sync + 'static; pub type AfterHook = Fn(&mut Context, &Message, &str, Result<(), String>) + Send + Sync + 'static; pub(crate) type InternalCommand = Arc<Command>; |