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