diff options
author | tom barrett <spalf0@gmail.com> | 2018-02-22 04:32:51 -0600 |
---|---|---|
committer | tom barrett <spalf0@gmail.com> | 2018-02-22 04:32:51 -0600 |
commit | c8d308a566c9e3e5be85e0e67082a06c3420a72b (patch) | |
tree | dbbd0ce6581a60a44b8dc978abc435829d874e0d /src/dashboard.rs | |
parent | 763653a32e62134a7e394c349d742636b0662a94 (diff) |
-got now a trait which resembles polymorphism for new objects
Diffstat (limited to 'src/dashboard.rs')
-rw-r--r-- | src/dashboard.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/dashboard.rs b/src/dashboard.rs index 3a3ec2b..2227251 100644 --- a/src/dashboard.rs +++ b/src/dashboard.rs @@ -11,8 +11,6 @@ pub fn Dashboard(mut buff_r : BufReader<TcpStream>) { let mut data = String::new(); buff_r.read_line(&mut data).unwrap(); let ship : Ship = serde_json::from_str(&data).unwrap(); - println!("Location: ({},{},{})", ship.location.0, - ship.location.1, - ship.location.2); + println!("{:?}", ship); } } |