diff options
author | HampusM <hampus@hampusmat.com> | 2024-03-16 18:16:14 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-03-16 18:16:14 +0100 |
commit | 96ba84e42c77147d297b358c944a48fee3785ae1 (patch) | |
tree | 4d3668eb8e4133876df7e6601e1ce250c0c96a8a /glfw | |
parent | aeb5e7225f571fbc9eabf6f238b6b6ffca324267 (diff) |
feat(glfw): make MouseButton derive PartialEq, Eq & Hash
Diffstat (limited to 'glfw')
-rw-r--r-- | glfw/src/window.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glfw/src/window.rs b/glfw/src/window.rs index 1c6fa5a..079b2fb 100644 --- a/glfw/src/window.rs +++ b/glfw/src/window.rs @@ -623,7 +623,7 @@ bitflags! { enum_from_repr!( #[repr(i32)] - #[derive(Debug, Clone, Copy)] + #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] pub enum MouseButton { One = crate::ffi::GLFW_MOUSE_BUTTON_1, |