remove unnecessary type conversions (#1411)

pull/1431/head
Rui 4 months ago committed by GitHub
parent ff6d42bd9b
commit 2758e06374
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -113,7 +113,7 @@ fn linear_log_recur(n: i32) -> i32 {
return 1; return 1;
} }
let mut count = linear_log_recur(n / 2) + linear_log_recur(n / 2); let mut count = linear_log_recur(n / 2) + linear_log_recur(n / 2);
for _ in 0..n as i32 { for _ in 0..n {
count += 1; count += 1;
} }
return count; return count;

Loading…
Cancel
Save