summaryrefslogtreecommitdiff
path: root/src/client/dashboard.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/dashboard.rs')
-rw-r--r--src/client/dashboard.rs11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/client/dashboard.rs b/src/client/dashboard.rs
index cbc55ba..5815ee2 100644
--- a/src/client/dashboard.rs
+++ b/src/client/dashboard.rs
@@ -23,14 +23,11 @@ pub fn client_dashboard(mut buff_r : BufReader<TcpStream>) {
termion::cursor::Goto(1,1),
ship).unwrap();
- match stdin.next() {
- Some(c) => {
- let c = c.unwrap() as char;
- if c == 'q' {
- break;
- }
+ if let Some(c) = stdin.next() {
+ let c = c.unwrap() as char;
+ if c == 'q' {
+ break;
}
- None => (),
}
stdout.flush().unwrap();
}