From 1e82c4bf62ce998b6c80b89aa30b26ca2e19b395 Mon Sep 17 00:00:00 2001
From: DevDoggo <devdoggo@protonmail.com>
Date: Wed, 2 May 2018 01:13:14 +0200
Subject: [PATCH] New Branch for development of Modules

---
 a1_guessing_game/src/main.rs | 2 +-
 a2_guessing_game/src/main.rs | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/a1_guessing_game/src/main.rs b/a1_guessing_game/src/main.rs
index 8ee4544..0954503 100644
--- a/a1_guessing_game/src/main.rs
+++ b/a1_guessing_game/src/main.rs
@@ -20,7 +20,7 @@ fn main() {
     loop{
         let mut guess = String::new();
         print!("\nYour guess is...: ");
-        io::stdout().flush();
+        io::stdout().flush().unwrap(); //Throws away the result, and grabs the OK if it exists.
 
         //returns io::Result, this has .expect() method
         io::stdin().read_line(&mut guess)  
diff --git a/a2_guessing_game/src/main.rs b/a2_guessing_game/src/main.rs
index ba4a668..68af77b 100644
--- a/a2_guessing_game/src/main.rs
+++ b/a2_guessing_game/src/main.rs
@@ -16,6 +16,7 @@ fn get_input() -> Result<u32, String> {
     print!("\nYour guess is...: ");
     io::stdout().flush().unwrap(); //Throws away the result, and grabs the OK if it exists.
     io::stdin().read_line(&mut guess); 
+        //Do I use something here or does that mess up the match below?
 
     //parse makes the string into the number type (in this case u32)
     //parse() can crash too with strange input. So .expect is here too!
@@ -27,7 +28,7 @@ fn get_input() -> Result<u32, String> {
 
 fn print_guesses(v: &Vec<(u32, String)>) {
     let iterations = 2;
-    for i in 0..iterations { 
+    for _i in 0..iterations { 
         println!("\nResults: Printing All\nAttempt | Guess");
         for g in v {
             println!("      {} | {}", g.0, g.1);
@@ -55,7 +56,7 @@ fn print_hashmap(hm: &HashMap<u32, String>) {
 fn print_hashmap_last_three(hm: &HashMap<u32, String>) {
     println!("\nResults: Printing Last Three in Hashmap\nAttempt | Guess");  
     let mut entries = 0;
-    for m in hm.iter() {
+    for _m in hm.iter() {
         entries += 1;
     }
     //let ln: u32 = hm.len(); //Give error because hm.len() is usize, not u32
-- 
GitLab