remove extra lines

This commit is contained in:
yggverse 2025-01-28 17:09:27 +02:00
parent 3d3e0d3b0a
commit 8ea11a215a

View file

@ -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())
}
} }
}, },
), ),