diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2020-10-14 19:42:28 +0200 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2020-10-14 19:42:28 +0200 |
| commit | afd537e085ddf2c92fb1f1879a72d290010fa570 (patch) | |
| tree | d789c98a4748cc391e91794737399056977223fc /mumd/src/main.rs | |
| parent | 8f32d34f1cf31cfd10d07e623842dd3f7fc86e8e (diff) | |
| download | mum-afd537e085ddf2c92fb1f1879a72d290010fa570.tar.gz | |
cargo clippy
Diffstat (limited to 'mumd/src/main.rs')
| -rw-r--r-- | mumd/src/main.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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<Command>, 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"); } |
