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.
This commit is contained in:
Christoph Herzog 2018-10-04 18:20:41 +02:00
parent 8d054dc281
commit e112efe7dd

View file

@ -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 /// 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 /// crate. An easy to use abstraction that does not require this knowledge is available via
/// [`IrcReactors`](./reactor/struct.IrcReactor.html). /// [`IrcReactors`](./reactor/struct.IrcReactor.html).
pub struct PackedIrcClient(pub IrcClient, pub Box<Future<Item = (), Error = error::IrcError>>); pub struct PackedIrcClient(pub IrcClient, pub Box<Future<Item = (), Error = error::IrcError> + Send>);
#[cfg(test)] #[cfg(test)]
mod test { mod test {