From effdf45d146c5a9168e50b28b9dd2250c91c0f07 Mon Sep 17 00:00:00 2001 From: Ole Bertram Date: Fri, 6 Nov 2020 20:19:56 +0100 Subject: [PATCH] Remove unnecessary clone of channel --- src/client.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client.rs b/src/client.rs index dde8793..f22cdc8 100644 --- a/src/client.rs +++ b/src/client.rs @@ -245,8 +245,7 @@ impl Client { async fn do_send(&self, commands: RawCommandList) -> Result { let (tx, rx) = oneshot::channel(); - let mut commands_sender = self.commands_sender.clone(); - commands_sender.send((commands, tx)).await?; + self.commands_sender.send((commands, tx)).await?; rx.await? }