fn translate_progress_to_bar(
    progress_bar: &mut Progress<'_>,
    root: Weak<Root>
) -> CargoResult<()>