Update
This commit is contained in:
@@ -36,7 +36,9 @@ fn main() {
|
||||
}
|
||||
};
|
||||
|
||||
let user_input_temp:u32 = match _user_input_temp.trim().parse::<u32>() {
|
||||
let user_input_temp = _user_input_temp.trim().to_string();
|
||||
|
||||
let user_input_temp:u32 = match user_input_temp.parse::<u32>() {
|
||||
Ok(num) => {num},
|
||||
Err(_) => {
|
||||
panic!("Something went wrong");
|
||||
|
||||
Reference in New Issue
Block a user