From 6c961c239a68eecf4e2158c612f2f8d25b8e125a Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sun, 24 Dec 2023 20:40:44 +0100 Subject: [PATCH] clippy fix --- src/demo/gamevent.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/demo/gamevent.rs b/src/demo/gamevent.rs index a4cbdf4..2cca1ae 100644 --- a/src/demo/gamevent.rs +++ b/src/demo/gamevent.rs @@ -25,7 +25,7 @@ impl Eq for GameEventDefinition {} impl PartialOrd for GameEventDefinition { fn partial_cmp(&self, other: &Self) -> Option { - self.id.partial_cmp(&other.id) + Some(self.id.cmp(&other.id)) } }