Skip to content

Commit

Permalink
Try to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed Nov 20, 2023
1 parent 4deebe6 commit 4812d7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arrow/src/pyarrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ impl FromPyArrow for ArrayData {

let schema_ptr = unsafe { schema_capsule.reference::<FFI_ArrowSchema>() };
let array = unsafe { FFI_ArrowArray::from_raw(array_capsule.pointer() as _) };
return ffi::from_ffi(array, schema_ptr).map_err(to_py_err);
return unsafe { ffi::from_ffi(array, schema_ptr) }.map_err(to_py_err);
}

validate_class("Array", value)?;
Expand All @@ -287,7 +287,7 @@ impl FromPyArrow for ArrayData {
),
)?;

ffi::from_ffi(array, &schema).map_err(to_py_err)
unsafe { ffi::from_ffi(array, &schema) }.map_err(to_py_err)
}
}

Expand Down Expand Up @@ -348,7 +348,7 @@ impl FromPyArrow for RecordBatch {

let schema_ptr = unsafe { schema_capsule.reference::<FFI_ArrowSchema>() };
let ffi_array = unsafe { FFI_ArrowArray::from_raw(array_capsule.pointer() as _) };
let array_data = ffi::from_ffi(ffi_array, schema_ptr).map_err(to_py_err)?;
let array_data = unsafe { ffi::from_ffi(ffi_array, schema_ptr) }.map_err(to_py_err)?;
if !matches!(array_data.data_type(), DataType::Struct(_)) {
return Err(PyTypeError::new_err(
"Expected Struct type from __arrow_c_array.",
Expand Down

0 comments on commit 4812d7c

Please sign in to comment.