tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5544Rust 88Markdown 11TOML 91926 Sutichaykuna

Derive Eq (#175)

9ca8c202aa6ca82714b16bcebd7ac2d527e338ec · ruwaq Andreas Weibye · (4 wata ñawpaq) · tayta 3f26d38a5 · kay commitpi sach'ata qhaway

Semántico sayk'uy

Mana ima sutichaypas t'ikrakurqanchu: qillqalla, yachachiylla utaq willaylla t'ikrakurqan.

1 qillqakuna · +3 −3

diff --git a/src/geometry.rs b/src/geometry.rs
index 223103bb1..3c6abd1fe 100644
--- a/src/geometry.rs
+++ b/src/geometry.rs
@@ -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> {
@@ -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> {
@@ -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,