From 4c08cd83c4975735d5db56f754eb051086ce9f1f Mon Sep 17 00:00:00 2001 From: CoCoSol007 Date: Wed, 14 Feb 2024 17:34:54 +0100 Subject: [PATCH] update --- crates/border-wars/src/hex.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/border-wars/src/hex.rs b/crates/border-wars/src/hex.rs index 0f9aa3a..b02c530 100644 --- a/crates/border-wars/src/hex.rs +++ b/crates/border-wars/src/hex.rs @@ -8,8 +8,8 @@ use num::Signed; use partial_min_max::{max, min}; /// Represents a number that can be used in a hexagonal grid. -pub trait HexNumber: Signed + PartialEq + Copy + PartialOrd {} -impl HexNumber for T {} +pub trait HexNumber: Signed + PartialEq + Copy + PartialOrd + FromPrimitive {} +impl HexNumber for T {} /// Represents a position in a hexagonal grid. /// We use the axial coordinate system explained in this