summaryrefslogtreecommitdiffstats
path: root/widget/src/svg.rs
diff options
context:
space:
mode:
Diffstat (limited to 'widget/src/svg.rs')
-rw-r--r--widget/src/svg.rs2
1 files changed, 1 insertions, 1 deletions
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<Theme> Svg<Theme> {
/// 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
}
}