aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-05-20 19:21:18 +0100
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-05-20 19:21:18 +0100
commitc8f93ff58cf4f63d48d2258e1a4c449e043987f3 (patch)
treee73d02daa76b7eafe5f4a55cdd5d2d3a0e9d6ef7 /crates
parent3894eb77d8c06acda68f6c267315063b1c9960e8 (diff)
parent87316db0b1cd220e7dfd30a88a1ae1e1a21863c0 (diff)
Merge #1288
1288: output the progress for real r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_cli/src/analysis_stats.rs5
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 );