Skip to content

Commit

Permalink
Derive Eq (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
Weibye committed Jun 18, 2022
1 parent 3f26d38 commit 9ca8c20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/geometry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::style::{Dimension, FlexDirection};
use core::ops::Add;

/// An axis-aligned UI rectangle
#[derive(Debug, Copy, Clone, PartialEq)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "serde", serde(default))]
pub struct Rect<T> {
Expand Down Expand Up @@ -149,7 +149,7 @@ where
}

/// The width and height of a [`Rect`]
#[derive(Debug, Copy, Clone, PartialEq)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "serde", serde(default))]
pub struct Size<T> {
Expand Down Expand Up @@ -241,7 +241,7 @@ impl Size<Dimension> {
/// A 2-dimensional coordinate.
///
/// When used in association with a [`Rect`], represents the bottom-left corner.
#[derive(Debug, Copy, Clone, PartialEq)]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct Point<T> {
/// The x-coordinate
pub x: T,
Expand Down

0 comments on commit 9ca8c20

Please sign in to comment.