diff options
Diffstat (limited to '')
| -rw-r--r-- | examples/styling/src/main.rs | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/styling/src/main.rs b/examples/styling/src/main.rs index 34d18fc9..cca94c8f 100644 --- a/examples/styling/src/main.rs +++ b/examples/styling/src/main.rs @@ -77,7 +77,7 @@ impl Sandbox for Styling {          )          .padding(10)          .size(20) -        .style(self.theme); +        .style(self.theme.into());          let button = Button::new(&mut self.button, Text::new("Submit"))              .padding(10) @@ -194,11 +194,11 @@ mod style {          }      } -    impl From<Theme> for Box<dyn text_input::StyleSheet> { +    impl From<Theme> for &'static dyn text_input::StyleSheet {          fn from(theme: Theme) -> Self {              match theme {                  Theme::Light => Default::default(), -                Theme::Dark => dark::TextInput.into(), +                Theme::Dark => &dark::TextInput,              }          }      }  | 
