summaryrefslogtreecommitdiffstats
path: root/widget/src/helpers.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-06 17:26:07 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-06 17:26:07 +0100
commit8a63774b24488f71147a728123551ae72c080d14 (patch)
tree377c16d68cc70a510e0f2b911a43a792b0c91892 /widget/src/helpers.rs
parent597a41cea73f078eda04eb3ff40cfda5d37d6135 (diff)
downloadiced-8a63774b24488f71147a728123551ae72c080d14.tar.gz
iced-8a63774b24488f71147a728123551ae72c080d14.tar.bz2
iced-8a63774b24488f71147a728123551ae72c080d14.zip
Try `Style` newtype instead of trait for `Svg` widget
Diffstat (limited to 'widget/src/helpers.rs')
-rw-r--r--widget/src/helpers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/widget/src/helpers.rs b/widget/src/helpers.rs
index da9a5792..f63306c4 100644
--- a/widget/src/helpers.rs
+++ b/widget/src/helpers.rs
@@ -366,7 +366,7 @@ pub fn image<Handle>(handle: impl Into<Handle>) -> crate::Image<Handle> {
#[cfg(feature = "svg")]
pub fn svg<Theme>(handle: impl Into<core::svg::Handle>) -> crate::Svg<Theme>
where
- Theme: crate::svg::Style,
+ crate::svg::Style<Theme>: Default,
{
crate::Svg::new(handle)
}