aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_cli/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_cli/src')
-rw-r--r--crates/ra_cli/src/analysis_stats.rs1
-rw-r--r--crates/ra_cli/src/main.rs2
2 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_cli/src/analysis_stats.rs b/crates/ra_cli/src/analysis_stats.rs
index ac65415a5..fd0027691 100644
--- a/crates/ra_cli/src/analysis_stats.rs
+++ b/crates/ra_cli/src/analysis_stats.rs
@@ -183,7 +183,6 @@ pub fn run(
183 println!("Total: {:?}, {}", analysis_time.elapsed(), ra_prof::memory_usage()); 183 println!("Total: {:?}, {}", analysis_time.elapsed(), ra_prof::memory_usage());
184 184
185 if memory_usage { 185 if memory_usage {
186 drop(db);
187 for (name, bytes) in host.per_query_memory_usage() { 186 for (name, bytes) in host.per_query_memory_usage() {
188 println!("{:>8} {}", bytes, name) 187 println!("{:>8} {}", bytes, name)
189 } 188 }
diff --git a/crates/ra_cli/src/main.rs b/crates/ra_cli/src/main.rs
index 3808590ab..806612c2c 100644
--- a/crates/ra_cli/src/main.rs
+++ b/crates/ra_cli/src/main.rs
@@ -22,7 +22,7 @@ pub enum Verbosity {
22} 22}
23 23
24impl Verbosity { 24impl Verbosity {
25 fn is_verbose(&self) -> bool { 25 fn is_verbose(self) -> bool {
26 match self { 26 match self {
27 Verbosity::Verbose => true, 27 Verbosity::Verbose => true,
28 _ => false, 28 _ => false,