summaryrefslogtreecommitdiffstats
path: root/style
diff options
context:
space:
mode:
Diffstat (limited to 'style')
-rw-r--r--style/src/svg.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/style/src/svg.rs b/style/src/svg.rs
index 5053f9f8..3fe5546b 100644
--- a/style/src/svg.rs
+++ b/style/src/svg.rs
@@ -22,5 +22,7 @@ pub trait StyleSheet {
fn appearance(&self, style: &Self::Style) -> Appearance;
/// Produces the hovered [`Appearance`] of a svg content.
- fn hovered(&self, style: &Self::Style) -> Appearance;
+ fn hovered(&self, style: &Self::Style) -> Appearance {
+ self.appearance(style)
+ }
}