Skip to content

Commit

Permalink
Merge #2966
Browse files Browse the repository at this point in the history
2966: Fix extra parentheses warnings r=kjeremy a=lnicola



Co-authored-by: Laurențiu Nicola <[email protected]>
  • Loading branch information
bors[bot] and lnicola authored Jan 31, 2020
2 parents dc713ea + 0829e26 commit 12ac379
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ra_cli/src/analysis_stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 12ac379

Please sign in to comment.