aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_cli/src/analysis_stats.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-02-17 16:31:09 +0000
committerAleksey Kladov <[email protected]>2020-02-17 16:32:17 +0000
commitd7be1da8df45027ce18b8af9da68ed98b9a454cc (patch)
treebbbf059cd41cb48859710155c30d5dac4a657440 /crates/ra_cli/src/analysis_stats.rs
parent559c5f37f6d0435eb3a0bbb1cf10051783df4dfc (diff)
Inline ra_batch
Diffstat (limited to 'crates/ra_cli/src/analysis_stats.rs')
-rw-r--r--crates/ra_cli/src/analysis_stats.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_cli/src/analysis_stats.rs b/crates/ra_cli/src/analysis_stats.rs
index bfa174d51..d40f04391 100644
--- a/crates/ra_cli/src/analysis_stats.rs
+++ b/crates/ra_cli/src/analysis_stats.rs
@@ -13,7 +13,7 @@ use ra_db::SourceDatabaseExt;
13use ra_syntax::AstNode; 13use ra_syntax::AstNode;
14use rand::{seq::SliceRandom, thread_rng}; 14use rand::{seq::SliceRandom, thread_rng};
15 15
16use crate::{progress_report::ProgressReport, Result, Verbosity}; 16use crate::{load_cargo::load_cargo, progress_report::ProgressReport, Result, Verbosity};
17 17
18pub fn run( 18pub fn run(
19 verbosity: Verbosity, 19 verbosity: Verbosity,
@@ -24,7 +24,7 @@ pub fn run(
24 randomize: bool, 24 randomize: bool,
25) -> Result<()> { 25) -> Result<()> {
26 let db_load_time = Instant::now(); 26 let db_load_time = Instant::now();
27 let (mut host, roots) = ra_batch::load_cargo(path)?; 27 let (mut host, roots) = load_cargo(path)?;
28 let db = host.raw_database(); 28 let db = host.raw_database();
29 println!("Database loaded, {} roots, {:?}", roots.len(), db_load_time.elapsed()); 29 println!("Database loaded, {} roots, {:?}", roots.len(), db_load_time.elapsed());
30 let analysis_time = Instant::now(); 30 let analysis_time = Instant::now();