From 156bc8f9b2e1556e78d60a252c9b21c30ea5d2ea Mon Sep 17 00:00:00 2001 From: Rhys Lloyd Date: Fri, 29 May 2026 17:14:57 -0700 Subject: [PATCH] card_game without Session is no_std --- card_game/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/card_game/src/lib.rs b/card_game/src/lib.rs index 56788b5..ab698e0 100644 --- a/card_game/src/lib.rs +++ b/card_game/src/lib.rs @@ -317,12 +317,12 @@ pub enum SolveError { MovesBudgetExceeded, StatesBudgetExceeded, } -impl std::fmt::Display for SolveError { - fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { +impl core::fmt::Display for SolveError { + fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { write!(f, "{self:?}") } } -impl std::error::Error for SolveError {} +impl core::error::Error for SolveError {} /// The solution tends to be very large with long chains of moves that go back to the same state. /// It is recommended to call .clean_solution() if the solution is actually going to be shown to a user.