From 35ce250bf91eef0437466aab7b677844ac8a1a26 Mon Sep 17 00:00:00 2001 From: hodasemi Date: Sun, 30 Jan 2022 15:18:07 +0100 Subject: [PATCH] Add Hash to EventType --- src/constants.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constants.rs b/src/constants.rs index f9e6841..4e3b44c 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -1,7 +1,7 @@ /// Event types supported by the device. /// /// This is implemented as a newtype around the u16 "type" field of `libc::input_event`. -#[derive(Copy, Clone, PartialEq, Eq)] +#[derive(Copy, Clone, PartialEq, Eq, Hash)] pub struct EventType(pub u16); evdev_enum!(