summaryrefslogtreecommitdiffstats
path: root/examples/scrollable/src/style.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/scrollable/src/style.rs')
-rw-r--r--examples/scrollable/src/style.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/scrollable/src/style.rs b/examples/scrollable/src/style.rs
index 068483cb..3c8e5234 100644
--- a/examples/scrollable/src/style.rs
+++ b/examples/scrollable/src/style.rs
@@ -25,11 +25,11 @@ impl<'a> From<Theme> for Box<dyn container::StyleSheet + 'a> {
}
}
-impl From<Theme> for &'static dyn radio::StyleSheet {
+impl<'a> From<Theme> for Box<dyn radio::StyleSheet + 'a> {
fn from(theme: Theme) -> Self {
match theme {
Theme::Light => Default::default(),
- Theme::Dark => &dark::Radio,
+ Theme::Dark => dark::Radio.into(),
}
}
}