From d40037c48c63dd8c9ad2e67d52a44d1d8358e598 Mon Sep 17 00:00:00 2001 From: mos Date: Wed, 18 Dec 2024 18:55:20 +0100 Subject: [PATCH] reorder match arms --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 769c4d1..a654508 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -65,8 +65,8 @@ impl std::fmt::Display for Cell { match self { Cell::Wall => 'X', Cell::Box => '*', - Cell::Goal(true) => '!', Cell::Goal(false) => '.', + Cell::Goal(true) => '!', Cell::None => ' ', } ) @@ -159,8 +159,8 @@ impl Level { } 'X' => Ok(Cell::Wall), '*' => Ok(Cell::Box), - '!' => Ok(Cell::Goal(true)), 'g' => Ok(Cell::Goal(false)), + '!' => Ok(Cell::Goal(true)), '.' => Ok(Cell::None), _ => Err(ReadError::BadSymbol), })