diff options
| author | Zeyla Hellyer <[email protected]> | 2017-09-18 20:28:14 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-09-18 20:28:14 -0700 |
| commit | 50d7f00f1b01f4e0d9c86dbdd05a4d4f7b41f8b1 (patch) | |
| tree | 353e42d9be0b4fd4bd86141490109970c32dd651 /src/framework/standard/buckets.rs | |
| parent | Fix block on spawning multiple shards (diff) | |
| download | serenity-50d7f00f1b01f4e0d9c86dbdd05a4d4f7b41f8b1.tar.xz serenity-50d7f00f1b01f4e0d9c86dbdd05a4d4f7b41f8b1.zip | |
Add Send/Sync to framework items
Diffstat (limited to 'src/framework/standard/buckets.rs')
| -rw-r--r-- | src/framework/standard/buckets.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/framework/standard/buckets.rs b/src/framework/standard/buckets.rs index 4719b85..8005a51 100644 --- a/src/framework/standard/buckets.rs +++ b/src/framework/standard/buckets.rs @@ -5,7 +5,7 @@ use client::Context; use model::{ChannelId, GuildId, UserId}; #[cfg(feature = "cache")] -type Check = Fn(&mut Context, Option<GuildId>, ChannelId, UserId) -> bool + 'static; +type Check = Fn(&mut Context, Option<GuildId>, ChannelId, UserId) -> bool + Send + Sync + 'static; #[cfg(not(feature = "cache"))] type Check = Fn(&mut Context, ChannelId, UserId) -> bool + 'static; |