From 96ba84e42c77147d297b358c944a48fee3785ae1 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 16 Mar 2024 18:16:14 +0100 Subject: feat(glfw): make MouseButton derive PartialEq, Eq & Hash --- glfw/src/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.3-18-g5258