mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 07:16:31 +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_timestamp = 0;
|
||||||
let mut newest_location_id = 0;
|
let mut newest_location_id = 0;
|
||||||
|
|
||||||
for i in 0..locations.len() {
|
for location in locations {
|
||||||
let location = &locations[i];
|
|
||||||
|
|
||||||
let exists =
|
let exists =
|
||||||
stmt_test.exists(params![location.timestamp, contact_id as i32])?;
|
stmt_test.exists(params![location.timestamp, contact_id as i32])?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user