From f3b7e23281e085c14be6d7f28e5eb4c3faf3649d Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 16 Mar 2024 14:52:12 +0100 Subject: feat(glfw): make Key derive PartialEq, Eq & Hash --- glfw/src/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'glfw/src/window.rs') diff --git a/glfw/src/window.rs b/glfw/src/window.rs index 8059cea..a9512d6 100644 --- a/glfw/src/window.rs +++ b/glfw/src/window.rs @@ -433,7 +433,7 @@ pub enum CursorMode enum_from_repr!( #[repr(i32)] - #[derive(Debug, Clone, Copy)] + #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] pub enum Key { // Unknown = crate::ffi::GLFW_KEY_UNKNOWN, -- cgit v1.2.3-18-g5258