mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-17 00:00:11 +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]
|
||||
futures = "0.1.4"
|
||||
futures = "0.1.9"
|
||||
log = "0.3"
|
||||
mio = "0.6"
|
||||
scoped-tls = "0.1.0"
|
||||
|
||||
+1
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user