From 5ad2d2bfb25b75c97ffacae2308ffc1c0db46f4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Wed, 10 Feb 2021 17:01:49 +0100 Subject: [PATCH] Derive Clone, Copy, PartialEq for EventStatus and WindowScalePolicy --- src/event.rs | 2 +- src/window_open_options.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/event.rs b/src/event.rs index 5423ddf..346f39f 100644 --- a/src/event.rs +++ b/src/event.rs @@ -92,7 +92,7 @@ pub enum Event { /// when there is no clear meaning of passing back the event to the platform, /// or it isn't obviously useful. Currently, only [`Event::Keyboard`] variants /// are supported. -#[derive(Debug)] +#[derive(Debug, Clone, Copy, PartialEq)] pub enum EventStatus { /// Event was handled by your window and will not be sent back to the /// platform for further processing. diff --git a/src/window_open_options.rs b/src/window_open_options.rs index 4299ae4..c4abf74 100644 --- a/src/window_open_options.rs +++ b/src/window_open_options.rs @@ -1,7 +1,7 @@ use crate::Size; /// The dpi scaling policy of the window -#[derive(Debug)] +#[derive(Debug, Clone, Copy, PartialEq)] pub enum WindowScalePolicy { /// Use the system's dpi scale factor SystemScaleFactor,