(msg: impl Into<Cow<'static, str>>)
| 41 | } |
| 42 | |
| 43 | fn show_progress(msg: impl Into<Cow<'static, str>>) -> ProgressBar { |
| 44 | let pb = ProgressBar::new_spinner(); |
| 45 | pb.enable_steady_tick(Duration::from_millis(120)); |
| 46 | pb.set_style(ProgressStyle::default_spinner().tick_strings(&[ |
| 47 | "▹▹▹▹▹", |
| 48 | "▸▹▹▹▹", |
| 49 | "▹▸▹▹▹", |
| 50 | "▹▹▸▹▹", |
| 51 | "▹▹▹▸▹", |
| 52 | "▹▹▹▹▸", |
| 53 | "▪▪▪▪▪", |
| 54 | ])); |
| 55 | pb.set_message(msg); |
| 56 | pb |
| 57 | } |