From c8d308a566c9e3e5be85e0e67082a06c3420a72b Mon Sep 17 00:00:00 2001 From: tom barrett Date: Thu, 22 Feb 2018 04:32:51 -0600 Subject: -got now a trait which resembles polymorphism for new objects --- src/dashboard.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/dashboard.rs') 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) { 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); } } -- cgit v1.2.3