Add PartialEq derives for widget styles

This commit is contained in:
BradySimon 2024-10-12 19:55:41 -04:00 committed by Héctor Ramón Jiménez
parent c217500a5a
commit f912d26d64
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
13 changed files with 19 additions and 19 deletions

View file

@ -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,