From d2058ef71dbef0f8c624124a2ac8631720405cab Mon Sep 17 00:00:00 2001 From: Martin HART Date: Thu, 29 Oct 2020 11:55:29 +0100 Subject: [PATCH] del unused var --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 814bd7b..13b6b44 100644 --- a/src/main.rs +++ b/src/main.rs @@ -64,11 +64,11 @@ fn parse_config(conf: String, pool: &mut Vec) -> Result() { 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::() { 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 }) }