summaryrefslogtreecommitdiff
path: root/glfw
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-03-16 14:52:12 +0100
committerHampusM <hampus@hampusmat.com>2024-03-16 14:52:12 +0100
commitf3b7e23281e085c14be6d7f28e5eb4c3faf3649d (patch)
tree2e2a6a6ca290b1304060fa740b189c214670de3f /glfw
parent4c9d15356b195c0d51bfdea7d24dc4a5cd000263 (diff)
feat(glfw): make Key derive PartialEq, Eq & Hash
Diffstat (limited to 'glfw')
-rw-r--r--glfw/src/window.rs2
1 files changed, 1 insertions, 1 deletions
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,