minor cleanup
This commit is contained in:
parent
e2ba1390c6
commit
1b3a6a45ce
2 changed files with 3 additions and 5 deletions
|
|
@ -40,9 +40,7 @@ pub unsafe extern "C" fn read_path(
|
|||
|
||||
let input = fs::read(path).expect("File read failed");
|
||||
let (_input, struct_arr) = read_library(&input).expect("Read failed");
|
||||
let (mut arr_v, mut schema_v) = to_ffi(&struct_arr.to_data()).unwrap();
|
||||
*arr = arr_v;
|
||||
*schema = schema_v;
|
||||
(*arr, *schema) = to_ffi(&struct_arr.to_data()).unwrap();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue