Remove extra Download struct from dowload_progress example
This commit is contained in:
parent
72b975ec82
commit
9cbad0a352
1 changed files with 0 additions and 6 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue