summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-04-09 22:40:58 +0200
committerLibravatar GitHub <noreply@github.com>2024-04-09 22:40:58 +0200
commitee105e3bee1bc676dcf3324693984ccda8e4e733 (patch)
treef1da9e7f06cf33446cf0ab4a24dedc63b74ccc5c
parent72b975ec82660b39f27b6cb015b763caf20e6483 (diff)
parent9cbad0a352fcf12c5352e37bc15c0d20be6f89d7 (diff)
downloadiced-ee105e3bee1bc676dcf3324693984ccda8e4e733.tar.gz
iced-ee105e3bee1bc676dcf3324693984ccda8e4e733.tar.bz2
iced-ee105e3bee1bc676dcf3324693984ccda8e4e733.zip
Merge pull request #2380 from alex-ds13/master
Remove extra Download struct from dowload_progress example
-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) => {