about summary refs log tree commit diff
path: root/users/wpcarro/scratch/rust/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'users/wpcarro/scratch/rust/src/main.rs')
-rw-r--r--users/wpcarro/scratch/rust/src/main.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/users/wpcarro/scratch/rust/src/main.rs b/users/wpcarro/scratch/rust/src/main.rs
index da9e3d3c637c..185e7236c5f6 100644
--- a/users/wpcarro/scratch/rust/src/main.rs
+++ b/users/wpcarro/scratch/rust/src/main.rs
@@ -3,16 +3,12 @@ use serde_json::{json, Value};
 
 mod display;
 mod json;
+mod stdin;
 
 ////////////////////////////////////////////////////////////////////////////////
 // Main
 ////////////////////////////////////////////////////////////////////////////////
 
 fn main() {
-    let john: display::Person = display::Person {
-        fname: "John".to_string(),
-        lname: "Cleese".to_string(),
-        age: 82,
-    };
-    println!("Person: {}", john)
+    stdin::example();
 }