summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/engines.rs2
-rw-r--r--src/client/navigation.rs1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/client/engines.rs b/src/client/engines.rs
index 60ffcfd..32d869a 100644
--- a/src/client/engines.rs
+++ b/src/client/engines.rs
@@ -23,7 +23,7 @@ pub fn client_engines(mut stream: TcpStream, mut buff_r: BufReader<TcpStream>) {
writeln!(
stdout,
- "{}{}{}Fuel\nuse numpad to freely move",
+ "{}{}Fuel: {:.2}\nuse numpad to freely move",
termion::clear::All,
termion::cursor::Goto(1, 1),
engines_data.fuel
diff --git a/src/client/navigation.rs b/src/client/navigation.rs
index 1f2ed06..43daafb 100644
--- a/src/client/navigation.rs
+++ b/src/client/navigation.rs
@@ -32,7 +32,6 @@ pub fn client_navigation(name: String, mut stream: TcpStream, mut buff_r: BufRea
let ship = within_range.remove(&name).unwrap();
if let MassType::Ship { ref navigation, .. } = ship.mass_type {
- let navigation = navigation.clone().unwrap();
for (i, (mass_name, mass)) in within_range.iter().enumerate() {
let target_data = get_target_status(&navigation, &mass_name);
write!(