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 },