summaryrefslogtreecommitdiffstats
path: root/examples/download_progress
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-11 02:34:10 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-11 02:34:10 +0100
commit9f21eae1528fa414adbfb987ce4c851fa58326fe (patch)
tree4eff76cd5effe1b3fa51e4fe17c9a53aa9823841 /examples/download_progress
parent06ece6a8c30541b7b2b6bcbb370fdffc9f1fcb79 (diff)
downloadiced-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.rs2
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) =