summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authortom barrett <spalf0@gmail.com>2018-04-05 09:03:17 -0500
committertom barrett <spalf0@gmail.com>2018-04-05 09:03:17 -0500
commit9d05fa5a62e6447727c184722590587c24f6827c (patch)
tree39ff221347fced05560f7cdfe40091abf0bc2e74 /src/bin
parent20d2ab63c46d97a9dcc4df848dd728419d0031f9 (diff)
-changed all data strings to recv strings (just more appropriate name)
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/client.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/client.rs b/src/bin/client.rs
index bb99485..1c64b39 100644
--- a/src/bin/client.rs
+++ b/src/bin/client.rs
@@ -28,9 +28,9 @@ fn main() {
stream.write(send.as_bytes()).unwrap();
- let mut data = String::new();
- buff_r.read_line(&mut data).unwrap();
- let modules : Vec<Module> = serde_json::from_str(&data.replace("\n","")).unwrap();
+ let mut recv = String::new();
+ buff_r.read_line(&mut recv).unwrap();
+ let modules : Vec<Module> = serde_json::from_str(&recv.replace("\n","")).unwrap();
println!("Choose your module:");
for (i, module) in modules.iter().enumerate() {