mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
Remove extraneous clone in Remote
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user