diff options
author | 2021-10-31 16:53:18 +0700 | |
---|---|---|
committer | 2021-10-31 16:53:18 +0700 | |
commit | d36ce33a95c277ee8fe45555df17daf21ef02ef8 (patch) | |
tree | 57bc16dda40405c33447bb59a78a4ba33adef7f2 /examples/pokedex/src/main.rs | |
parent | 661cb5736ecc6e7810591216aa541db582a2fcc0 (diff) | |
download | iced-d36ce33a95c277ee8fe45555df17daf21ef02ef8.tar.gz iced-d36ce33a95c277ee8fe45555df17daf21ef02ef8.tar.bz2 iced-d36ce33a95c277ee8fe45555df17daf21ef02ef8.zip |
Reintroduce `Box` for `style_sheet` in `Button`
Diffstat (limited to 'examples/pokedex/src/main.rs')
-rw-r--r-- | examples/pokedex/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pokedex/src/main.rs b/examples/pokedex/src/main.rs index c9930158..c99240a1 100644 --- a/examples/pokedex/src/main.rs +++ b/examples/pokedex/src/main.rs @@ -243,7 +243,7 @@ impl From<reqwest::Error> for Error { fn button<'a>(state: &'a mut button::State, text: &str) -> Button<'a, Message> { Button::new(state, Text::new(text)) .padding(10) - .style(&style::Button::Primary) + .style(style::Button::Primary) } mod style { |