summaryrefslogtreecommitdiffstats
path: root/examples/lazy
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-04-01 21:36:08 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-04-01 21:36:08 +0200
commit1d83e59e8ab51d403baee0daa878644c6a37be3f (patch)
treed081c5d1de46209ef00e4bea7ddb303cc646c5fd /examples/lazy
parentc30b4b0a1c9b191bcb65ae1732581b5c96b8bcfe (diff)
downloadiced-1d83e59e8ab51d403baee0daa878644c6a37be3f.tar.gz
iced-1d83e59e8ab51d403baee0daa878644c6a37be3f.tar.bz2
iced-1d83e59e8ab51d403baee0daa878644c6a37be3f.zip
Specialize `widget::text` helper with custom `IntoContent` trait
Diffstat (limited to 'examples/lazy')
-rw-r--r--examples/lazy/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/lazy/src/main.rs b/examples/lazy/src/main.rs
index 2d53df93..c3f6b8de 100644
--- a/examples/lazy/src/main.rs
+++ b/examples/lazy/src/main.rs
@@ -173,7 +173,7 @@ impl App {
.style(button::danger);
row![
- text(&item.name).color(item.color),
+ text(item.name.clone()).color(item.color),
horizontal_space(),
pick_list(Color::ALL, Some(item.color), move |color| {
Message::ItemColorChanged(item.clone(), color)