Merge pull request #2380 from alex-ds13/master

Remove extra Download struct from dowload_progress example
This commit is contained in:
Héctor Ramón 2024-04-09 22:40:58 +02:00 committed by GitHub
commit ee105e3bee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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