From e112efe7dd7688dc3cc1f105c5a22520ed80110f Mon Sep 17 00:00:00 2001 From: Christoph Herzog Date: Thu, 4 Oct 2018 18:20:41 +0200 Subject: [PATCH] Add 'Send' bound for PackedClient client future. The Future is Send anyway, but this bound on the Box is neccessary to use the future across threads because the compiler can't figure out the Send bound otherwise. --- src/client/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/mod.rs b/src/client/mod.rs index 2927df0..79d14ed 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -828,7 +828,7 @@ impl Future for IrcClientFuture { /// This type should only be used by advanced users who are familiar with the implementation of this /// crate. An easy to use abstraction that does not require this knowledge is available via /// [`IrcReactors`](./reactor/struct.IrcReactor.html). -pub struct PackedIrcClient(pub IrcClient, pub Box>); +pub struct PackedIrcClient(pub IrcClient, pub Box + Send>); #[cfg(test)] mod test {