From 8518de91cb31042bde8c5ab1deff8a728f413270 Mon Sep 17 00:00:00 2001 From: Martin HART Date: Fri, 30 Oct 2020 16:38:12 +0100 Subject: [PATCH] fix break --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 097c868..3975876 100644 --- a/src/main.rs +++ b/src/main.rs @@ -173,7 +173,7 @@ fn parse_config(conf: String, pool: &mut Vec) -> Result = raw_inst.chars().collect(); - if !world::is_instructions(&inst) { + if !robot::is_instructions(&inst) { return Err(String::from("Invalid instructions !")); } @@ -228,7 +228,7 @@ mod tests { #[test] fn test_check_map() { - let mut r = robot::Robot::new( + let r = robot::Robot::new( 0, robot::Orientation::N, robot::Position { x: 2, y: 3 }, @@ -242,7 +242,7 @@ mod tests { #[test] #[should_panic] fn test_check_map_fail() { - let mut r = robot::Robot::new( + let r = robot::Robot::new( 0, robot::Orientation::N, robot::Position { x: 2, y: 4 }, @@ -256,7 +256,7 @@ mod tests { #[test] #[should_panic] fn test_check_collisions() { - let mut r = robot::Robot::new( + let r = robot::Robot::new( 0, robot::Orientation::N, robot::Position { x: 2, y: 3 },