Replace range loop with foreach loop

This commit is contained in:
Alexander Krotov
2019-07-28 21:36:17 +03:00
parent ae6c41a019
commit 76e76470e0

View File

@@ -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])?;