diff options
author | Aleksey Kladov <[email protected]> | 2019-05-20 19:20:52 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-05-20 19:20:52 +0100 |
commit | 87316db0b1cd220e7dfd30a88a1ae1e1a21863c0 (patch) | |
tree | e73d02daa76b7eafe5f4a55cdd5d2d3a0e9d6ef7 /crates | |
parent | 3894eb77d8c06acda68f6c267315063b1c9960e8 (diff) |
output the progress for real
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 | ); |