diff --git a/Cargo.toml b/Cargo.toml index de2ee9e0c..a86df167b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ the rest of the tokio crates. """ [dependencies] -futures = "0.1.4" +futures = "0.1.9" log = "0.3" mio = "0.6" scoped-tls = "0.1.0" diff --git a/src/reactor/mod.rs b/src/reactor/mod.rs index 424e4d881..4d52ad998 100644 --- a/src/reactor/mod.rs +++ b/src/reactor/mod.rs @@ -553,9 +553,7 @@ impl Remote { lp.notify(msg); } None => { - // TODO: shouldn't have to `clone` here, can we upstream - // that &self works with `UnboundedSender`? - match mpsc::UnboundedSender::send(&mut self.tx.clone(), msg) { + match mpsc::UnboundedSender::send(&self.tx, msg) { Ok(()) => {} // TODO: this error should punt upwards and we should