Merge branch '104-fix-share-url-printing-on-windows' into 'master'

Resolve "Fix share URL printing on Windows"

Closes #104

See merge request timvisee/ffsend!37
This commit is contained in:
Tim Visée 2020-09-27 13:31:25 +00:00
commit fa0ecf61bc

View file

@ -59,9 +59,17 @@ impl<'a> ProgressReporter for ProgressBar<'a> {
/// Finish the progress.
fn finish(&mut self) {
self.progress_bar
let progress_bar = self
.progress_bar
.as_mut()
.expect("progress bar not yet instantiated")
.finish_print(self.msg_finish);
.expect("progress bar not yet instantiated");
#[cfg(not(target_os = "windows"))]
progress_bar.finish_print(self.msg_finish);
#[cfg(target_os = "windows")]
{
progress_bar.finish_println(self.msg_finish);
eprintln!();
}
}
}