diff options
author | tom barrett <spalf0@gmail.com> | 2018-02-23 01:10:14 -0600 |
---|---|---|
committer | tom barrett <spalf0@gmail.com> | 2018-02-23 01:10:14 -0600 |
commit | 7798ebba1d8762e8b4c6eaf1efcd610fa030375a (patch) | |
tree | e5d01dfadf6fa8695c29f6ed4ba2a1c727ecd901 /src/bin/client.rs | |
parent | 839f8a7a260276973f41a2c5a6e9d138518d7072 (diff) |
-found way to downcast and created new struct
Diffstat (limited to 'src/bin/client.rs')
-rw-r--r-- | src/bin/client.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/client.rs b/src/bin/client.rs index 6f4a8fc..2e8dd45 100644 --- a/src/bin/client.rs +++ b/src/bin/client.rs @@ -6,6 +6,7 @@ use std::net::TcpStream; extern crate space; use space::dashboard::Dashboard; use space::engines::Engines; +use space::navigation::Navigation; use space::module::{Module, from_primitive}; @@ -46,6 +47,6 @@ fn main() { match module { Module::Dashboard => Dashboard(buff_r), Module::Engines => Engines(stream), - _ => (), + Module::Navigation => Navigation(stream, buff_r), } } |