diff options
Diffstat (limited to '')
| -rw-r--r-- | core/src/keyboard/event.rs | 2 | ||||
| -rw-r--r-- | core/src/length.rs | 2 | ||||
| -rw-r--r-- | core/src/size.rs | 2 | ||||
| -rw-r--r-- | core/src/vector.rs | 2 | 
4 files changed, 4 insertions, 4 deletions
| diff --git a/core/src/keyboard/event.rs b/core/src/keyboard/event.rs index 38777536..016761af 100644 --- a/core/src/keyboard/event.rs +++ b/core/src/keyboard/event.rs @@ -6,7 +6,7 @@ use super::{KeyCode, Modifiers};  /// additional events, feel free to [open an issue] and share your use case!_  ///  /// [open an issue]: https://github.com/iced-rs/iced/issues -#[derive(Debug, Clone, Copy, PartialEq)] +#[derive(Debug, Clone, Copy, PartialEq, Eq)]  pub enum Event {      /// A keyboard key was pressed.      KeyPressed { diff --git a/core/src/length.rs b/core/src/length.rs index 186411a5..95ea6e0e 100644 --- a/core/src/length.rs +++ b/core/src/length.rs @@ -1,5 +1,5 @@  /// The strategy used to fill space in a specific dimension. -#[derive(Debug, Clone, Copy, PartialEq, Hash)] +#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]  pub enum Length {      /// Fill all the remaining space      Fill, diff --git a/core/src/size.rs b/core/src/size.rs index 6745c6c8..2db33a88 100644 --- a/core/src/size.rs +++ b/core/src/size.rs @@ -2,7 +2,7 @@ use crate::{Padding, Vector};  use std::f32;  /// An amount of space in 2 dimensions. -#[derive(Debug, Clone, Copy, PartialEq)] +#[derive(Debug, Clone, Copy, PartialEq, Eq)]  pub struct Size<T = f32> {      /// The width.      pub width: T, diff --git a/core/src/vector.rs b/core/src/vector.rs index 92bb7648..b550869c 100644 --- a/core/src/vector.rs +++ b/core/src/vector.rs @@ -1,5 +1,5 @@  /// A 2D vector. -#[derive(Debug, Clone, Copy, PartialEq)] +#[derive(Debug, Clone, Copy, PartialEq, Eq)]  pub struct Vector<T = f32> {      /// The X component of the [`Vector`]      pub x: T, | 
