Commit 6566a1d
authored
Previously `read_data` was created using `move`. Since `transfer_size`
is a `usize` which is `Copy`, `read_data` received its own copy of
`transfer_size`.
As the original `transfer_size` was never updated, `download()` always
returned `0`.
1 parent e3c0870 commit 6566a1d
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| 336 | + | |
336 | 337 | | |
337 | | - | |
| 338 | + | |
338 | 339 | | |
339 | 340 | | |
340 | 341 | | |
| |||
346 | 347 | | |
347 | 348 | | |
348 | 349 | | |
349 | | - | |
350 | | - | |
| 350 | + | |
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| |||
0 commit comments