From b0705d2f4c06c13bcc4397ae1d4f29264c3e08c2 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 17 Aug 2022 16:09:25 +0200 Subject: Fix latest `clippy` lints --- core/src/keyboard/event.rs | 2 +- core/src/length.rs | 2 +- core/src/size.rs | 2 +- core/src/vector.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'core/src') 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 { /// 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 { /// The X component of the [`Vector`] pub x: T, -- cgit