From 070485e093dc540a5db9650d438cffe3d18d3883 Mon Sep 17 00:00:00 2001 From: tom barrett Date: Tue, 12 Feb 2019 13:20:06 -0600 Subject: added constants file, made so items are referred to by an enum, figured better ways than ship_clone --- src/client/construction.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/client/construction.rs') diff --git a/src/client/construction.rs b/src/client/construction.rs index b034b77..8cb812f 100644 --- a/src/client/construction.rs +++ b/src/client/construction.rs @@ -7,6 +7,7 @@ use std::io::{stdout, Read, Write}; use std::io::{BufRead, BufReader}; use std::net::TcpStream; +use crate::constants; use crate::modules::construction::ConstructionStatus; use crate::server::construction::ConstructionData; @@ -24,7 +25,7 @@ pub fn client_construction(mut stream: TcpStream, mut buff_r: BufReader { write!(stdout, "{}Press c to create a refinery.", clear).unwrap() @@ -34,8 +35,9 @@ pub fn client_construction(mut stream: TcpStream, mut buff_r: BufReader