From f912d26d64c80fe767e97a0c79416d7398f04488 Mon Sep 17 00:00:00 2001 From: BradySimon Date: Sat, 12 Oct 2024 19:55:41 -0400 Subject: Add `PartialEq` derives for widget styles --- widget/src/rule.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'widget/src/rule.rs') diff --git a/widget/src/rule.rs b/widget/src/rule.rs index 92199ca9..24577683 100644 --- a/widget/src/rule.rs +++ b/widget/src/rule.rs @@ -187,7 +187,7 @@ where } /// The appearance of a rule. -#[derive(Debug, Clone, Copy)] +#[derive(Debug, Clone, Copy, PartialEq)] pub struct Style { /// The color of the rule. pub color: Color, @@ -200,7 +200,7 @@ pub struct Style { } /// The fill mode of a rule. -#[derive(Debug, Clone, Copy)] +#[derive(Debug, Clone, Copy, PartialEq)] pub enum FillMode { /// Fill the whole length of the container. Full, -- cgit