From 790789f94023412f72fd2c5be250d3798f1a23d9 Mon Sep 17 00:00:00 2001 From: Martin HART Date: Sun, 8 Nov 2020 15:21:11 +0100 Subject: [PATCH] fix piouff shit --- src/robot.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/robot.rs b/src/robot.rs index 2856d46..8d7654b 100644 --- a/src/robot.rs +++ b/src/robot.rs @@ -88,10 +88,7 @@ pub fn is_instructions(v: &Vec) -> bool { /// Check if a robot is piouff. pub fn is_piouff(r: &Robot) -> bool { - if r.i.len() == 0 { - return true; - } - false + r.i.len() == 0 } /// Print robots id, position and instructions.