From 87316db0b1cd220e7dfd30a88a1ae1e1a21863c0 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 20 May 2019 21:20:52 +0300 Subject: output the progress for real --- crates/ra_cli/src/analysis_stats.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crates') diff --git a/crates/ra_cli/src/analysis_stats.rs b/crates/ra_cli/src/analysis_stats.rs index c95d452b3..b481ace9e 100644 --- a/crates/ra_cli/src/analysis_stats.rs +++ b/crates/ra_cli/src/analysis_stats.rs @@ -51,7 +51,10 @@ pub fn run(verbose: bool, path: &str, only: Option<&str>) -> Result<()> { println!("Total modules found: {}", visited_modules.len()); println!("Total declarations: {}", num_decls); println!("Total functions: {}", funcs.len()); - let bar = indicatif::ProgressBar::new(funcs.len() as u64); + let bar = indicatif::ProgressBar::with_draw_target( + funcs.len() as u64, + indicatif::ProgressDrawTarget::stderr_nohz(), + ); bar.set_style( indicatif::ProgressStyle::default_bar().template("{wide_bar} {pos}/{len}\n{msg}"), ); -- cgit v1.2.3