diff options
Diffstat (limited to 'style/src/checkbox.rs')
-rw-r--r-- | style/src/checkbox.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/style/src/checkbox.rs b/style/src/checkbox.rs index ba54b0a2..a8b4a11d 100644 --- a/style/src/checkbox.rs +++ b/style/src/checkbox.rs @@ -14,9 +14,9 @@ pub struct Appearance { /// A set of rules that dictate the style of a checkbox. pub trait StyleSheet { - type Style: Default + Copy; + type Style: Default; - fn active(&self, style: Self::Style, is_checked: bool) -> Appearance; + fn active(&self, style: &Self::Style, is_checked: bool) -> Appearance; - fn hovered(&self, style: Self::Style, is_checked: bool) -> Appearance; + fn hovered(&self, style: &Self::Style, is_checked: bool) -> Appearance; } |