summaryrefslogtreecommitdiffstats
path: root/examples/styling/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/styling/src/main.rs')
-rw-r--r--examples/styling/src/main.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/examples/styling/src/main.rs b/examples/styling/src/main.rs
index cf2dcb8a..c26215b6 100644
--- a/examples/styling/src/main.rs
+++ b/examples/styling/src/main.rs
@@ -55,12 +55,8 @@ impl Sandbox for Styling {
fn view(&self) -> Element<Message> {
let choose_theme = column![
text("Theme:"),
- pick_list(
- Theme::ALL,
- Some(self.theme.clone()),
- Message::ThemeChanged
- )
- .width(Length::Fill),
+ pick_list(Theme::ALL, Some(&self.theme), Message::ThemeChanged)
+ .width(Length::Fill),
]
.spacing(10);