remove unnecessary type conversions (#1411)

This commit is contained in:
Rui 2024-07-14 18:36:00 +08:00 committed by GitHub
parent ff6d42bd9b
commit 2758e06374
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;