remove unnecessary type conversions

This commit is contained in:
Rui 2024-07-06 15:20:44 +08:00 committed by GitHub
parent f4a6d2127c
commit 4d51f6a107
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;