mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
remove extra lines
This commit is contained in:
parent
3d3e0d3b0a
commit
8ea11a215a
1 changed files with 5 additions and 9 deletions
|
|
@ -235,12 +235,10 @@ fn handle(
|
||||||
// on chunk
|
// on chunk
|
||||||
{
|
{
|
||||||
let action = action.clone();
|
let action = action.clone();
|
||||||
move |_, total| {
|
move |_, total| action.update.activate(&format!(
|
||||||
action.update.activate(&format!(
|
"Received {}...",
|
||||||
"Received {}...",
|
format_bytes(total)
|
||||||
format_bytes(total)
|
))
|
||||||
))
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
// on complete
|
// on complete
|
||||||
{
|
{
|
||||||
|
|
@ -253,9 +251,7 @@ fn handle(
|
||||||
format_bytes(total)
|
format_bytes(total)
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => action.cancel.activate(&e.to_string())
|
||||||
action.cancel.activate(&e.to_string())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue