Skip to content

Commit 12ac379

Browse files
bors[bot]lnicola
andauthored
Merge #2966
2966: Fix extra parentheses warnings r=kjeremy a=lnicola Co-authored-by: Laurențiu Nicola <[email protected]>
2 parents dc713ea + 0829e26 commit 12ac379

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ra_cli/src/analysis_stats.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ pub fn run(
171171
println!(
172172
"Expressions of unknown type: {} ({}%)",
173173
num_exprs_unknown,
174-
if num_exprs > 0 { (num_exprs_unknown * 100 / num_exprs) } else { 100 }
174+
if num_exprs > 0 { num_exprs_unknown * 100 / num_exprs } else { 100 }
175175
);
176176
println!(
177177
"Expressions of partially unknown type: {} ({}%)",
178178
num_exprs_partially_unknown,
179-
if num_exprs > 0 { (num_exprs_partially_unknown * 100 / num_exprs) } else { 100 }
179+
if num_exprs > 0 { num_exprs_partially_unknown * 100 / num_exprs } else { 100 }
180180
);
181181
println!("Type mismatches: {}", num_type_mismatches);
182182
println!("Inference: {:?}, {}", inference_time.elapsed(), ra_prof::memory_usage());

0 commit comments

Comments
 (0)