From 16acb570a6c897dc79effd7573603a338e284f7f Mon Sep 17 00:00:00 2001 From: Volodymyr Patuta <6977238-fiplox@users.noreply.gitlab.com> Date: Sat, 7 Nov 2020 16:42:19 +0100 Subject: [PATCH] cremove unused variables --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 307984e..4d64130 100644 --- a/src/main.rs +++ b/src/main.rs @@ -78,7 +78,7 @@ fn parse_config(conf: String, pool: &mut Vec) -> Result = conf.split('\n').collect(); let raw_world = match ConfParser::parse(Rule::world, lines.remove(0)) { Ok(s) => s.as_str(), - Err(e) => return Err(String::from("World config is broken.")), + Err(_) => return Err(String::from("World config is broken.")), }; let mut w: Vec = Vec::with_capacity(2); for n in raw_world.split_whitespace() { @@ -95,7 +95,7 @@ fn parse_config(conf: String, pool: &mut Vec) -> Result s.as_str(), - Err(e) => return Err(String::from("Robot setup is broken.")), + Err(_) => return Err(String::from("Robot setup is broken.")), }; let rand_instructions = gen_random_instructions();