del unused var

This commit is contained in:
Martin HART 2020-10-29 11:55:29 +01:00
parent 790caa111d
commit d2058ef71d
1 changed files with 2 additions and 2 deletions

View File

@ -64,11 +64,11 @@ fn parse_config(conf: String, pool: &mut Vec<robot::Robot>) -> Result<world::Wor
};
let x: i32 = match token1.parse::<i32>() {
Ok(x) => x,
Err(err) => return Err("Could not convert token one from the first string to i32"),
Err(_) => return Err("Could not convert token one from the first string to i32"),
};
let y: i32 = match token2.parse::<i32>() {
Ok(x) => x,
Err(err) => return Err("Could not convert token two from the first string to i32"),
Err(_) => return Err("Could not convert token two from the first string to i32"),
};
Ok(world::World { x, y })
}