mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +03:00
refactor: remove unnecessary async block in dc_set_location
This commit is contained in:
@@ -2589,12 +2589,9 @@ pub unsafe extern "C" fn dc_set_location(
|
|||||||
}
|
}
|
||||||
let ctx = &*context;
|
let ctx = &*context;
|
||||||
|
|
||||||
block_on(async move {
|
block_on(location::set(ctx, latitude, longitude, accuracy))
|
||||||
location::set(ctx, latitude, longitude, accuracy)
|
.log_err(ctx)
|
||||||
.await
|
.unwrap_or_default() as libc::c_int
|
||||||
.log_err(ctx)
|
|
||||||
.unwrap_or_default()
|
|
||||||
}) as libc::c_int
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
|
|||||||
Reference in New Issue
Block a user