del unused var
This commit is contained in:
parent
790caa111d
commit
d2058ef71d
@ -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 })
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user