diff options
author | 2025-02-11 02:34:10 +0100 | |
---|---|---|
committer | 2025-02-11 02:34:10 +0100 | |
commit | 9f21eae1528fa414adbfb987ce4c851fa58326fe (patch) | |
tree | 4eff76cd5effe1b3fa51e4fe17c9a53aa9823841 /examples/download_progress | |
parent | 06ece6a8c30541b7b2b6bcbb370fdffc9f1fcb79 (diff) | |
download | iced-9f21eae1528fa414adbfb987ce4c851fa58326fe.tar.gz iced-9f21eae1528fa414adbfb987ce4c851fa58326fe.tar.bz2 iced-9f21eae1528fa414adbfb987ce4c851fa58326fe.zip |
Introduce `Task::map_with`
Diffstat (limited to 'examples/download_progress')
-rw-r--r-- | examples/download_progress/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/download_progress/src/main.rs b/examples/download_progress/src/main.rs index 8f59f1dc..cc7a7800 100644 --- a/examples/download_progress/src/main.rs +++ b/examples/download_progress/src/main.rs @@ -52,7 +52,7 @@ impl Example { let task = download.start(); - task.map(move |update| Message::DownloadUpdated(index, update)) + task.map_with(index, Message::DownloadUpdated) } Message::DownloadUpdated(id, update) => { if let Some(download) = |