diff options
author | 2024-04-08 19:37:37 +0100 | |
---|---|---|
committer | 2024-04-08 19:37:37 +0100 | |
commit | 9cbad0a352fcf12c5352e37bc15c0d20be6f89d7 (patch) | |
tree | f1da9e7f06cf33446cf0ab4a24dedc63b74ccc5c /examples/download_progress | |
parent | 72b975ec82660b39f27b6cb015b763caf20e6483 (diff) | |
download | iced-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.rs | 6 |
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) => { |