From 74fccb440d6eb0c9676de829a983322841815c5c Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Tue, 28 Apr 2020 15:49:50 +0200 Subject: derive Hash for WeaponSet and Activation --- src/event.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/event.rs b/src/event.rs index 867276c..305c33b 100644 --- a/src/event.rs +++ b/src/event.rs @@ -392,7 +392,7 @@ fn get_api_guild_string(bytes: &[u8; 16]) -> Option { } /// The different weapon-sets in game. -#[derive(Clone, Copy, Debug, PartialEq, Eq)] +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] pub enum WeaponSet { /// First water weapon set. Water0, @@ -426,7 +426,7 @@ impl WeaponSet { /// The different types to activate a skill. /// /// The parameter is the animation time in milliseconds. -#[derive(Clone, Copy, Debug, PartialEq, Eq)] +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] pub enum Activation { /// The skill was activated with quickness. Quickness(i32), -- cgit v1.2.3