summaryrefslogtreecommitdiffstats
path: root/examples/qr_code
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-02-14 04:09:33 +0100
committerLibravatar GitHub <noreply@github.com>2024-02-14 04:09:33 +0100
commit75b19646d3d17b9b44bb495e239cbbc2d139c0e9 (patch)
treebb6ef840b8b81367c83e1bc97150ae21e88d65e5 /examples/qr_code
parent52e207b89bb79dba210c581b790f794e6e0c94e8 (diff)
parent06973d31c6b7655f6f6fb0dfb17e621052b810e6 (diff)
downloadiced-75b19646d3d17b9b44bb495e239cbbc2d139c0e9.tar.gz
iced-75b19646d3d17b9b44bb495e239cbbc2d139c0e9.tar.bz2
iced-75b19646d3d17b9b44bb495e239cbbc2d139c0e9.zip
Merge pull request #2251 from iced-rs/borrow-pick-list-values
Use `Borrow` for both `options` and `selected` in `PickList`
Diffstat (limited to 'examples/qr_code')
-rw-r--r--examples/qr_code/src/main.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/qr_code/src/main.rs b/examples/qr_code/src/main.rs
index 8b2e9500..9f75eaf6 100644
--- a/examples/qr_code/src/main.rs
+++ b/examples/qr_code/src/main.rs
@@ -60,11 +60,7 @@ impl Sandbox for QRGenerator {
let choose_theme = row![
text("Theme:"),
- pick_list(
- Theme::ALL,
- Some(self.theme.clone()),
- Message::ThemeChanged,
- )
+ pick_list(Theme::ALL, Some(&self.theme), Message::ThemeChanged,)
]
.spacing(10)
.align_items(Alignment::Center);