mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +03:00
Replace range loop with foreach loop
This commit is contained in:
@@ -441,9 +441,7 @@ pub unsafe fn dc_save_locations(
|
||||
let mut newest_timestamp = 0;
|
||||
let mut newest_location_id = 0;
|
||||
|
||||
for i in 0..locations.len() {
|
||||
let location = &locations[i];
|
||||
|
||||
for location in locations {
|
||||
let exists =
|
||||
stmt_test.exists(params![location.timestamp, contact_id as i32])?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user