diff --git a/chat-cli/src/main.rs b/chat-cli/src/main.rs index 1d7fbdee1a..41ca03a63e 100644 --- a/chat-cli/src/main.rs +++ b/chat-cli/src/main.rs @@ -41,11 +41,9 @@ fn main() { client.register(comp::Player::new(username, None)); let (tx, rx) = mpsc::channel(); - thread::spawn(move || { - loop { - let msg = read_input(); - tx.send(msg).unwrap(); - } + thread::spawn(move || loop { + let msg = read_input(); + tx.send(msg).unwrap(); }); loop {