Returns the Progressbar, if it exists, otherwise "None"
()
| 61 | |
| 62 | /// Returns the Progressbar, if it exists, otherwise "None" |
| 63 | pub(crate) fn get_progress_bar() -> Option<ProgressBar> { |
| 64 | return CURRENT_PROGRESS_BAR.read().as_ref()?.upgrade(); |
| 65 | } |
| 66 | |
| 67 | /// Prints an anyhow error and its full error chain using the log::error macro |
| 68 | pub(crate) fn log_error(err: &anyhow::Error) { |
no outgoing calls
no test coverage detected