diff options
| author | Maiddog <[email protected]> | 2017-08-22 06:27:10 -0500 |
|---|---|---|
| committer | alex <[email protected]> | 2017-08-22 13:27:10 +0200 |
| commit | cb072aab60ac67bc4d52aed3554300c1c5e83081 (patch) | |
| tree | fc00dd5d91b989582e10a93afb4713f1fbd6c88f /src/framework/standard/create_group.rs | |
| parent | Fix presence updates (diff) | |
| download | serenity-cb072aab60ac67bc4d52aed3554300c1c5e83081.tar.xz serenity-cb072aab60ac67bc4d52aed3554300c1c5e83081.zip | |
Fix tests (#145)
Diffstat (limited to 'src/framework/standard/create_group.rs')
| -rw-r--r-- | src/framework/standard/create_group.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/framework/standard/create_group.rs b/src/framework/standard/create_group.rs index fabcc50..013ba67 100644 --- a/src/framework/standard/create_group.rs +++ b/src/framework/standard/create_group.rs @@ -58,10 +58,7 @@ impl CreateGroup { /// Adds a command to group with simplified API. /// You can return Err(string) if there's an error. pub fn on<F>(mut self, command_name: &str, f: F) -> Self - where F: Fn(&mut Context, &Message, Args) -> Result<(), String> - + Send - + Sync - + 'static { + where F: Fn(&mut Context, &Message, Args) -> Result<(), String> + Send + Sync + 'static { let cmd = Arc::new(Command::new(f)); self.0.commands.insert( |