Remove extra Download struct from dowload_progress example

This commit is contained in:
alex-ds13 2024-04-08 19:37:37 +01:00
parent 72b975ec82
commit 9cbad0a352

View file

@ -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) => {