From 34e7c6593a9e0f56cee5db18b7258717cf6bc11b Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 6 Mar 2024 20:30:58 +0100 Subject: Use `Style` struct pattern instead of trait for all widgets --- widget/src/svg.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widget/src/svg.rs') diff --git a/widget/src/svg.rs b/widget/src/svg.rs index 8ac5a1cf..c80fa6b1 100644 --- a/widget/src/svg.rs +++ b/widget/src/svg.rs @@ -81,7 +81,7 @@ impl Svg { /// Sets the style variant of this [`Svg`]. #[must_use] pub fn style(mut self, style: fn(&Theme, Status) -> Appearance) -> Self { - self.style = style.into(); + self.style = Style(style); self } } -- cgit