diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_cli/src/analysis_stats.rs | 5 |
1 files changed, 4 insertions, 1 deletions
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<()> { | |||
51 | println!("Total modules found: {}", visited_modules.len()); | 51 | println!("Total modules found: {}", visited_modules.len()); |
52 | println!("Total declarations: {}", num_decls); | 52 | println!("Total declarations: {}", num_decls); |
53 | println!("Total functions: {}", funcs.len()); | 53 | println!("Total functions: {}", funcs.len()); |
54 | let bar = indicatif::ProgressBar::new(funcs.len() as u64); | 54 | let bar = indicatif::ProgressBar::with_draw_target( |
55 | funcs.len() as u64, | ||
56 | indicatif::ProgressDrawTarget::stderr_nohz(), | ||
57 | ); | ||
55 | bar.set_style( | 58 | bar.set_style( |
56 | indicatif::ProgressStyle::default_bar().template("{wide_bar} {pos}/{len}\n{msg}"), | 59 | indicatif::ProgressStyle::default_bar().template("{wide_bar} {pos}/{len}\n{msg}"), |
57 | ); | 60 | ); |