Implement Eq and PartialEq for MouseScrollUnit (#5048)

This commit is contained in:
Corey Farwell 2022-06-19 16:53:49 +00:00
parent 8b27124a80
commit 5dbb178d5d

View file

@ -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.
///