From 8e367ab6b64b865ee1f931cb86930d86bbe9dbdb Mon Sep 17 00:00:00 2001 From: Corwin Date: Sat, 13 Jan 2024 10:31:33 +0000 Subject: [PATCH] allow dead code of an enum parameter only used in a debug print --- .../the-dungeon-puzzlers-lament/src/game/simulation/entity.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/the-dungeon-puzzlers-lament/src/game/simulation/entity.rs b/examples/the-dungeon-puzzlers-lament/src/game/simulation/entity.rs index c8248890..c128692d 100644 --- a/examples/the-dungeon-puzzlers-lament/src/game/simulation/entity.rs +++ b/examples/the-dungeon-puzzlers-lament/src/game/simulation/entity.rs @@ -1074,6 +1074,9 @@ mod tests { } #[derive(Debug)] + // allow dead code because field is unused apart from in a debug string, + // which is what we want to use it for. + #[allow(dead_code)] enum CompleteSimulationResult { Success, ExplicitLoss,