From 65a6c9a4fc48b757e8bc02d55c29c8f320557517 Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Sun, 19 Jun 2022 16:53:49 +0000 Subject: [PATCH] Implement `Eq` and `PartialEq` for `MouseScrollUnit` (#5048) --- crates/bevy_input/src/mouse.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_input/src/mouse.rs b/crates/bevy_input/src/mouse.rs index c88c0295abffa..c8dc432094824 100644 --- a/crates/bevy_input/src/mouse.rs +++ b/crates/bevy_input/src/mouse.rs @@ -56,7 +56,7 @@ pub struct MouseMotion { /// /// The value of the event can either be interpreted as the amount of lines or the amount of pixels /// to scroll. -#[derive(Debug, Clone, Copy)] +#[derive(Debug, Clone, Copy, Eq, PartialEq)] pub enum MouseScrollUnit { /// The line scroll unit. ///