Remove extraneous clone in Remote

This commit is contained in:
Alex Crichton
2017-01-23 20:06:03 -08:00
parent b9e182a2ce
commit e69b67fcfe
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ the rest of the tokio crates.
""" """
[dependencies] [dependencies]
futures = "0.1.4" futures = "0.1.9"
log = "0.3" log = "0.3"
mio = "0.6" mio = "0.6"
scoped-tls = "0.1.0" scoped-tls = "0.1.0"
+1 -3
View File
@@ -553,9 +553,7 @@ impl Remote {
lp.notify(msg); lp.notify(msg);
} }
None => { None => {
// TODO: shouldn't have to `clone` here, can we upstream match mpsc::UnboundedSender::send(&self.tx, msg) {
// that &self works with `UnboundedSender`?
match mpsc::UnboundedSender::send(&mut self.tx.clone(), msg) {
Ok(()) => {} Ok(()) => {}
// TODO: this error should punt upwards and we should // TODO: this error should punt upwards and we should