Add Hash to EventType

This commit is contained in:
hodasemi 2022-01-30 15:18:07 +01:00
parent a6452d1858
commit 35ce250bf9

View file

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