summaryrefslogtreecommitdiffstats
path: root/examples/download_progress
diff options
context:
space:
mode:
authorLibravatar alex-ds13 <145657253+alex-ds13@users.noreply.github.com>2024-04-08 19:37:37 +0100
committerLibravatar alex-ds13 <145657253+alex-ds13@users.noreply.github.com>2024-04-08 19:37:37 +0100
commit9cbad0a352fcf12c5352e37bc15c0d20be6f89d7 (patch)
treef1da9e7f06cf33446cf0ab4a24dedc63b74ccc5c /examples/download_progress
parent72b975ec82660b39f27b6cb015b763caf20e6483 (diff)
downloadiced-9cbad0a352fcf12c5352e37bc15c0d20be6f89d7.tar.gz
iced-9cbad0a352fcf12c5352e37bc15c0d20be6f89d7.tar.bz2
iced-9cbad0a352fcf12c5352e37bc15c0d20be6f89d7.zip
Remove extra Download struct from dowload_progress example
Diffstat (limited to 'examples/download_progress')
-rw-r--r--examples/download_progress/src/download.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/examples/download_progress/src/download.rs b/examples/download_progress/src/download.rs
index 3b11cb76..d6cc1e24 100644
--- a/examples/download_progress/src/download.rs
+++ b/examples/download_progress/src/download.rs
@@ -12,12 +12,6 @@ pub fn file<I: 'static + Hash + Copy + Send + Sync, T: ToString>(
})
}
-#[derive(Debug, Hash, Clone)]
-pub struct Download<I> {
- id: I,
- url: String,
-}
-
async fn download<I: Copy>(id: I, state: State) -> ((I, Progress), State) {
match state {
State::Ready(url) => {