From 5ca80bbb2d1d630d177015dd35f64dcfadfb4c26 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 c88c0295abffa7..c8dc432094824d 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. ///