From 45f10af7339e8022531aabd9656c7d46ee238803 Mon Sep 17 00:00:00 2001 From: baardk Date: Sun, 30 Nov 2025 12:58:11 +0100 Subject: [PATCH] Add allow unused to the ambiguity and order exercise The 09_ambiguity_and_ordering does not seem to work on a vanilla rust install of version cargo 1.91.1 (ea2d97820 2025-10-10). Allowing unused solves the issue. Thanks for a fun kakta! --- exercises/09_ambiguity_and_ordering/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/exercises/09_ambiguity_and_ordering/main.rs b/exercises/09_ambiguity_and_ordering/main.rs index 23581e7..64791b4 100644 --- a/exercises/09_ambiguity_and_ordering/main.rs +++ b/exercises/09_ambiguity_and_ordering/main.rs @@ -3,6 +3,7 @@ /// This enum should represent what code the user wrote exactly. /// Even though to a compiled program there's no difference, /// this will let the program tell what sort of code the user wrote. +#[allow(unused)] #[derive(Debug)] enum NumberType { /// The user wrote a literal, positive number.