From 5e162695322b40a4470c61309bf9eea1ad6dd0c3 Mon Sep 17 00:00:00 2001 From: Aleksei Zolotov Date: Sat, 23 Apr 2022 16:21:07 +0200 Subject: [PATCH] Add PartialEq to events::KeyCode --- packages/html/src/events.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/html/src/events.rs b/packages/html/src/events.rs index 7e95375cf..79c90e8ab 100644 --- a/packages/html/src/events.rs +++ b/packages/html/src/events.rs @@ -611,7 +611,7 @@ pub mod on { feature = "serialize", derive(serde_repr::Serialize_repr, serde_repr::Deserialize_repr) )] -#[derive(Clone, Copy, Debug)] +#[derive(Clone, Copy, Debug, PartialEq)] #[repr(u8)] pub enum KeyCode { // That key has no keycode, = 0