summaryrefslogtreecommitdiff
path: root/src/client/dashboard.rs
diff options
context:
space:
mode:
authortom barrett <spalf0@gmail.com>2018-04-13 03:39:24 -0500
committertom barrett <spalf0@gmail.com>2018-04-13 03:39:24 -0500
commit4d7a7e368a3f0a6b1261e1b9180a2647eb158047 (patch)
tree50ead62fdc5e22e839920dae44a02dc25b247678 /src/client/dashboard.rs
parent74c7e70096ebcb0cab10f24ce1d348198d583161 (diff)
moved over to mass struct with enum for types
Diffstat (limited to 'src/client/dashboard.rs')
-rw-r--r--src/client/dashboard.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/dashboard.rs b/src/client/dashboard.rs
index 3776223..b9f0a08 100644
--- a/src/client/dashboard.rs
+++ b/src/client/dashboard.rs
@@ -4,13 +4,13 @@ use std::io::BufRead;
use std::io::BufReader;
use std::net::TcpStream;
-use ship::Ship;
+use mass::Mass;
pub fn client_dashboard(mut buff_r : BufReader<TcpStream>) {
loop {
let mut recv = String::new();
buff_r.read_line(&mut recv).unwrap();
- let ship : Ship = serde_json::from_str(&recv).unwrap();
+ let ship : Mass = serde_json::from_str(&recv).unwrap();
println!("{:?}", ship);
}
}