Merge pull request #2380 from alex-ds13/master
Remove extra Download struct from dowload_progress example
This commit is contained in:
commit
ee105e3bee
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) {
|
async fn download<I: Copy>(id: I, state: State) -> ((I, Progress), State) {
|
||||||
match state {
|
match state {
|
||||||
State::Ready(url) => {
|
State::Ready(url) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue