From c17d067a1ac7d57b20fba953aeef488f7d061801 Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 24 Apr 2026 20:58:58 +0200 Subject: [PATCH] refactor: remove unnecessary async block in dc_set_location --- deltachat-ffi/src/lib.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/deltachat-ffi/src/lib.rs b/deltachat-ffi/src/lib.rs index 4b375ad4c..bf45f1e46 100644 --- a/deltachat-ffi/src/lib.rs +++ b/deltachat-ffi/src/lib.rs @@ -2589,12 +2589,9 @@ pub unsafe extern "C" fn dc_set_location( } let ctx = &*context; - block_on(async move { - location::set(ctx, latitude, longitude, accuracy) - .await - .log_err(ctx) - .unwrap_or_default() - }) as libc::c_int + block_on(location::set(ctx, latitude, longitude, accuracy)) + .log_err(ctx) + .unwrap_or_default() as libc::c_int } #[no_mangle]