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:
parent
8d054dc281
commit
e112efe7dd
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue