diff --git a/rust/lab1/population/src/lib.rs b/rust/lab1/population/src/lib.rs index 4d0904d..54dacc0 100644 --- a/rust/lab1/population/src/lib.rs +++ b/rust/lab1/population/src/lib.rs @@ -8,7 +8,7 @@ pub fn get_int(prompt: &str) -> i32 { let mut input_text = String::new(); match io::stdin().read_line(&mut input_text) { Ok(_) => match input_text.trim().parse() { - Ok(start_size) => return start_size, + Ok(int_input) => return int_input, Err(_) => continue, }, Err(_) => continue, diff --git a/rust/pset1/cash/src/lib.rs b/rust/pset1/cash/src/lib.rs index 913d474..54dacc0 100644 --- a/rust/pset1/cash/src/lib.rs +++ b/rust/pset1/cash/src/lib.rs @@ -8,7 +8,7 @@ pub fn get_int(prompt: &str) -> i32 { let mut input_text = String::new(); match io::stdin().read_line(&mut input_text) { Ok(_) => match input_text.trim().parse() { - Ok(input_int) => return input_int, + Ok(int_input) => return int_input, Err(_) => continue, }, Err(_) => continue, diff --git a/rust/pset1/credit/src/lib.rs b/rust/pset1/credit/src/lib.rs index 5a4cfd1..6e62f65 100644 --- a/rust/pset1/credit/src/lib.rs +++ b/rust/pset1/credit/src/lib.rs @@ -8,7 +8,7 @@ pub fn get_long(prompt: &str) -> u64 { let mut input_text = String::new(); match io::stdin().read_line(&mut input_text) { Ok(_) => match input_text.trim().parse() { - Ok(input_long) => return input_long, + Ok(long_input) => return long_input, Err(_) => continue, }, Err(_) => continue,