From 843a26fa90a218eb7bf35f1da5cf5aa16141247c Mon Sep 17 00:00:00 2001 From: Martin HART Date: Fri, 30 Oct 2020 16:11:13 +0100 Subject: [PATCH] Remove prinln!() debug test --- src/main.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/main.rs b/src/main.rs index be2c6f6..097c868 100644 --- a/src/main.rs +++ b/src/main.rs @@ -185,6 +185,7 @@ fn parse_config(conf: String, pool: &mut Vec) -> Result return Err(err), } } + Ok(w) } @@ -213,16 +214,6 @@ fn main() -> Result<(), Box> { let mut robot_pool: Vec = Vec::new(); let world: world::World = parse_config(raw_conf, &mut robot_pool)?; - println!("World -> x: {}, y: {}", world.x, world.y); - println!("Number of robot -> {}", robot_pool.len()); - println!( - "robot_pool[0] -> id: {}, x: {}, y: {}", - robot_pool[0].id, robot_pool[0].p.x, robot_pool[0].p.y - ); - println!( - "robot_pool[1] -> id: {}, x: {}, y: {}", - robot_pool[1].id, robot_pool[1].p.x, robot_pool[1].p.y - ); Ok(()) }