From a43afc791e8f78b03d802f980a10f32dc932f0b2 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 5 Mar 2024 22:38:27 +0100 Subject: Simplify theming for `Rule` widget --- widget/src/helpers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'widget/src/helpers.rs') diff --git a/widget/src/helpers.rs b/widget/src/helpers.rs index 01645bc9..33c9f300 100644 --- a/widget/src/helpers.rs +++ b/widget/src/helpers.rs @@ -324,7 +324,7 @@ pub fn vertical_space() -> Space { /// [`Rule`]: crate::Rule pub fn horizontal_rule(height: impl Into) -> Rule where - Theme: rule::StyleSheet, + Theme: rule::Style, { Rule::horizontal(height) } @@ -334,7 +334,7 @@ where /// [`Rule`]: crate::Rule pub fn vertical_rule(width: impl Into) -> Rule where - Theme: rule::StyleSheet, + Theme: rule::Style, { Rule::vertical(width) } -- cgit