From afd537e085ddf2c92fb1f1879a72d290010fa570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Wed, 14 Oct 2020 19:42:28 +0200 Subject: cargo clippy --- mumd/src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mumd/src/main.rs') diff --git a/mumd/src/main.rs b/mumd/src/main.rs index 797b71f..f837a52 100644 --- a/mumd/src/main.rs +++ b/mumd/src/main.rs @@ -119,13 +119,13 @@ async fn main() { } async fn send_commands(command_sender: mpsc::UnboundedSender, connect_command: Command) { - command_sender.send(connect_command.clone()); + command_sender.send(connect_command.clone()).unwrap(); tokio::time::delay_for(Duration::from_secs(2)).await; - command_sender.send(Command::ServerDisconnect); + command_sender.send(Command::ServerDisconnect).unwrap(); tokio::time::delay_for(Duration::from_secs(2)).await; - command_sender.send(connect_command.clone()); + command_sender.send(connect_command.clone()).unwrap(); tokio::time::delay_for(Duration::from_secs(2)).await; - command_sender.send(Command::ServerDisconnect); + command_sender.send(Command::ServerDisconnect).unwrap(); debug!("Finished sending commands"); } -- cgit v1.2.1