diff options
author | Edwin Cheng <[email protected]> | 2019-11-26 20:33:40 +0000 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2019-11-26 20:34:06 +0000 |
commit | 27943bead6798cd202d7398f38cecfd3f5840645 (patch) | |
tree | 6e1378c5225401c0ae04f39e869b28a0ee417fdb /crates/ra_cli/src/analysis_stats.rs | |
parent | 97f6f141ee06ddfb22f8c02223fa71102b670528 (diff) |
Remove progress bar and add a true counter
Diffstat (limited to 'crates/ra_cli/src/analysis_stats.rs')
-rw-r--r-- | crates/ra_cli/src/analysis_stats.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_cli/src/analysis_stats.rs b/crates/ra_cli/src/analysis_stats.rs index 122aa0552..9b1802a5f 100644 --- a/crates/ra_cli/src/analysis_stats.rs +++ b/crates/ra_cli/src/analysis_stats.rs | |||
@@ -6,7 +6,7 @@ use ra_db::SourceDatabaseExt; | |||
6 | use ra_hir::{AssocItem, Crate, HasSource, HirDisplay, ModuleDef, Ty, TypeWalk}; | 6 | use ra_hir::{AssocItem, Crate, HasSource, HirDisplay, ModuleDef, Ty, TypeWalk}; |
7 | use ra_syntax::AstNode; | 7 | use ra_syntax::AstNode; |
8 | 8 | ||
9 | use crate::{progress_bar::ProgressBar, Result, Verbosity}; | 9 | use crate::{progress_report::ProgressReport, Result, Verbosity}; |
10 | 10 | ||
11 | pub fn run( | 11 | pub fn run( |
12 | verbosity: Verbosity, | 12 | verbosity: Verbosity, |
@@ -76,8 +76,8 @@ pub fn run( | |||
76 | 76 | ||
77 | let inference_time = Instant::now(); | 77 | let inference_time = Instant::now(); |
78 | let mut bar = match verbosity { | 78 | let mut bar = match verbosity { |
79 | Verbosity::Verbose | Verbosity::Normal => ProgressBar::new(funcs.len() as u64), | 79 | Verbosity::Verbose | Verbosity::Normal => ProgressReport::new(funcs.len() as u64), |
80 | Verbosity::Quiet => ProgressBar::hidden(), | 80 | Verbosity::Quiet => ProgressReport::hidden(), |
81 | }; | 81 | }; |
82 | 82 | ||
83 | bar.tick(); | 83 | bar.tick(); |