fix: rust types
(cherry picked from commit 925a0abd694f6409b6d54b6cad3a61fc916215d3)
This commit is contained in:
parent
edd9ec9e84
commit
c924fed81b
3 changed files with 4 additions and 4 deletions
|
|
@ -284,7 +284,7 @@ impl EvalState {
|
|||
let n = unsafe { check_call!(raw::get_attrs_size(&mut self.context, v.raw_ptr())) }?;
|
||||
let mut attrs = Vec::with_capacity(n as usize);
|
||||
for i in 0..n {
|
||||
let cstr_ptr: *const i8 = unsafe {
|
||||
let cstr_ptr: *const u8 = unsafe {
|
||||
check_call!(raw::get_attr_name_byidx(
|
||||
&mut self.context,
|
||||
v.raw_ptr(),
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ impl FlakeReferenceParseFlags {
|
|||
context::check_call!(raw::flake_reference_parse_flags_set_base_directory(
|
||||
&mut ctx,
|
||||
self.ptr.as_ptr(),
|
||||
base_directory.as_ptr() as *const i8,
|
||||
base_directory.as_ptr() as *const u8,
|
||||
base_directory.len()
|
||||
))
|
||||
}?;
|
||||
|
|
@ -125,7 +125,7 @@ impl FlakeReference {
|
|||
fetch_settings.raw_ptr(),
|
||||
flake_settings.ptr,
|
||||
flags.ptr.as_ptr(),
|
||||
reference.as_ptr() as *const i8,
|
||||
reference.as_ptr() as *const u8,
|
||||
reference.len(),
|
||||
// pointer to ptr
|
||||
&mut ptr,
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ impl Context {
|
|||
raw::set_err_msg(
|
||||
self.inner.as_ptr(),
|
||||
raw::err_NIX_OK,
|
||||
b"\0".as_ptr() as *const i8,
|
||||
b"\0".as_ptr() as *const u8,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue