From 1304fab23779382e90a8bda25f1078855a9fd619 Mon Sep 17 00:00:00 2001 From: kirbylife Date: Wed, 4 Sep 2024 17:41:40 -0600 Subject: [PATCH] Fix invalid length and invalid chars case --- src/gameslot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gameslot.rs b/src/gameslot.rs index ec26f92..a4aada4 100644 --- a/src/gameslot.rs +++ b/src/gameslot.rs @@ -81,8 +81,8 @@ impl Game { (_, _) => InsertionStatus::Ok, } } - (0..=5, _, &GameStatus::Playing, true) => InsertionStatus::LengthError, (0..=5, 5, &GameStatus::Playing, false) => InsertionStatus::InvalidChar, + (0..=5, _, &GameStatus::Playing, _) => InsertionStatus::LengthError, (_, _, &GameStatus::Win(_) | &GameStatus::Fail, _) => InsertionStatus::GameOver, _ => InsertionStatus::UnknownError, };