From d37b0e6ee5725ceb23a2546e1e673026e5d09cd9 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Mon, 15 Oct 2018 13:45:58 +0200 Subject: derive FromPrimitive for Boss Makes it easier to deal with boss ids, as they are usually given in numeric form. --- src/statistics/gamedata.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/statistics/gamedata.rs b/src/statistics/gamedata.rs index 9aaf9d7..1b4c4e2 100644 --- a/src/statistics/gamedata.rs +++ b/src/statistics/gamedata.rs @@ -3,7 +3,7 @@ use super::boon::{BoonQueue, BoonType}; /// Enum containing all bosses with their IDs. -#[derive(Debug, Clone, PartialEq, Eq, Hash)] +#[derive(Debug, Clone, PartialEq, Eq, Hash, FromPrimitive)] pub enum Boss { ValeGuardian = 0x3C4E, Gorseval = 0x3C45, -- cgit v1.2.3