mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-24 00:00:11 +02:00
Remove extraneous clone in Remote
This commit is contained in:
+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