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!(