fix(nix-bindings-rust): fix aarch64 abi support

This commit is contained in:
Tristan Ross 2025-11-06 11:02:27 -08:00 committed by John Ericson
parent 17f0e655fd
commit 46656f6056
2 changed files with 2 additions and 2 deletions

View file

@ -144,7 +144,7 @@ mod tests {
raw::set_err_msg(
ctx_ptr,
raw::err_NIX_ERR_UNKNOWN.try_into().unwrap(),
b"dummy error message\0".as_ptr() as *const i8,
b"dummy error message\0".as_ptr() as *const std::os::raw::c_char,
);
}
}

View file

@ -75,7 +75,7 @@ mod tests {
#[test]
fn test_callback_result_string() {
let mut ret: Result<String> = result_string_init!();
let start: *const std::os::raw::c_char = b"helloGARBAGE".as_ptr() as *const i8;
let start = b"helloGARBAGE".as_ptr() as *const std::os::raw::c_char;
let n: std::os::raw::c_uint = 5;
let user_data: *mut std::os::raw::c_void = callback_get_result_string_data(&mut ret);
unsafe {