fix(nix-bindings-rust): fix aarch64 abi support
This commit is contained in:
parent
17f0e655fd
commit
46656f6056
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue