diff options
author | 2025-02-12 01:51:20 +0100 | |
---|---|---|
committer | 2025-02-12 01:51:20 +0100 | |
commit | 89a412695af321356a6f05f9111510d35a839983 (patch) | |
tree | 12b342eb17688cbb07e6c9fd8748c42ef7591501 /examples/todos/src | |
parent | bf205a88b66a6fa8ea6d9a259bfd0ed0b42a97b7 (diff) | |
parent | e78c757cad5619c77a588054b42e9b87335d6e86 (diff) | |
download | iced-89a412695af321356a6f05f9111510d35a839983.tar.gz iced-89a412695af321356a6f05f9111510d35a839983.tar.bz2 iced-89a412695af321356a6f05f9111510d35a839983.zip |
Merge pull request #2805 from iced-rs/feature/sipper-support
`sipper` support and some QoL
Diffstat (limited to 'examples/todos/src')
-rw-r--r-- | examples/todos/src/main.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs index 7faf742e..dfb73d96 100644 --- a/examples/todos/src/main.rs +++ b/examples/todos/src/main.rs @@ -4,7 +4,9 @@ use iced::widget::{ scrollable, text, text_input, Text, }; use iced::window; -use iced::{Center, Element, Fill, Font, Subscription, Task as Command}; +use iced::{ + Center, Element, Fill, Font, Function, Subscription, Task as Command, +}; use serde::{Deserialize, Serialize}; use uuid::Uuid; @@ -215,9 +217,8 @@ impl Todos { .map(|(i, task)| { ( task.id, - task.view(i).map(move |message| { - Message::TaskMessage(i, message) - }), + task.view(i) + .map(Message::TaskMessage.with(i)), ) }), ) |