From e69b67fcfe29a28fb7980694c0379ad98139bb99 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 23 Jan 2017 20:06:03 -0800 Subject: [PATCH] Remove extraneous `clone` in Remote --- Cargo.toml | 2 +- src/reactor/mod.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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