Skip to content

Commit 9d7db20

Browse files
authored
refactor(ffi): replace implicit drop in cffi with explicit drop(Arc::from_raw(var)) (#7664)
for improved clarity and consistency with existing code.
1 parent fdb583b commit 9d7db20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deltachat-ffi/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4773,7 +4773,7 @@ pub unsafe extern "C" fn dc_accounts_unref(accounts: *const dc_accounts_t) {
47734773
eprintln!("ignoring careless call to dc_accounts_unref()");
47744774
return;
47754775
}
4776-
let _ = Arc::from_raw(accounts);
4776+
drop(Arc::from_raw(accounts));
47774777
}
47784778

47794779
#[no_mangle]

0 commit comments

Comments
 (0)