From d36ce33a95c277ee8fe45555df17daf21ef02ef8 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 31 Oct 2021 16:53:18 +0700 Subject: Reintroduce `Box` for `style_sheet` in `Button` --- examples/stopwatch/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/stopwatch') diff --git a/examples/stopwatch/src/main.rs b/examples/stopwatch/src/main.rs index e6743620..dc8a4de7 100644 --- a/examples/stopwatch/src/main.rs +++ b/examples/stopwatch/src/main.rs @@ -112,15 +112,15 @@ impl Application for Stopwatch { let toggle_button = { let (label, color) = match self.state { - State::Idle => ("Start", &style::Button::Primary), - State::Ticking { .. } => ("Stop", &style::Button::Destructive), + State::Idle => ("Start", style::Button::Primary), + State::Ticking { .. } => ("Stop", style::Button::Destructive), }; button(&mut self.toggle, label, color).on_press(Message::Toggle) }; let reset_button = - button(&mut self.reset, "Reset", &style::Button::Secondary) + button(&mut self.reset, "Reset", style::Button::Secondary) .on_press(Message::Reset); let controls = Row::new() -- cgit