From f44aee27d31ca331fee8993152c42875b3364711 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 25 Jan 2020 11:53:40 +0100 Subject: Disable env_logger humantime feature We rarely care about timings of events, and, when we care, we need millisecond precision --- crates/ra_cli/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_cli') diff --git a/crates/ra_cli/Cargo.toml b/crates/ra_cli/Cargo.toml index 12af075f7..bcd408421 100644 --- a/crates/ra_cli/Cargo.toml +++ b/crates/ra_cli/Cargo.toml @@ -7,7 +7,7 @@ publish = false [dependencies] pico-args = "0.3.0" -env_logger = { version = "0.7.1", default-features = false, features = ["humantime"] } +env_logger = { version = "0.7.1", default-features = false } ra_syntax = { path = "../ra_syntax" } ra_ide = { path = "../ra_ide" } -- cgit v1.2.3 From 0829e26354d10afcbe3182549169998811e3fe5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Fri, 31 Jan 2020 21:07:21 +0200 Subject: Fix extra parentheses warnings --- crates/ra_cli/src/analysis_stats.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_cli') diff --git a/crates/ra_cli/src/analysis_stats.rs b/crates/ra_cli/src/analysis_stats.rs index fd0027691..833235bff 100644 --- a/crates/ra_cli/src/analysis_stats.rs +++ b/crates/ra_cli/src/analysis_stats.rs @@ -171,12 +171,12 @@ pub fn run( println!( "Expressions of unknown type: {} ({}%)", num_exprs_unknown, - if num_exprs > 0 { (num_exprs_unknown * 100 / num_exprs) } else { 100 } + if num_exprs > 0 { num_exprs_unknown * 100 / num_exprs } else { 100 } ); println!( "Expressions of partially unknown type: {} ({}%)", num_exprs_partially_unknown, - if num_exprs > 0 { (num_exprs_partially_unknown * 100 / num_exprs) } else { 100 } + if num_exprs > 0 { num_exprs_partially_unknown * 100 / num_exprs } else { 100 } ); println!("Type mismatches: {}", num_type_mismatches); println!("Inference: {:?}, {}", inference_time.elapsed(), ra_prof::memory_usage()); -- cgit v1.2.3