alamb commented on code in PR #8489:
URL: https://github.com/apache/arrow-rs/pull/8489#discussion_r2389070012
##########
arrow-schema/src/ffi.rs:
##########
@@ -98,20 +98,20 @@ unsafe extern "C" fn release_schema(schema: *mut
FFI_ArrowSchema) {
if schema.is_null() {
return;
}
- let schema = &mut *schema;
+ let schema = unsafe { &mut *schema };
Review Comment:
Makes sense -- let's go with the more surgical approach then 🇹🇭
##########
arrow-schema/src/ffi.rs:
##########
@@ -98,20 +98,20 @@ unsafe extern "C" fn release_schema(schema: *mut
FFI_ArrowSchema) {
if schema.is_null() {
return;
}
- let schema = &mut *schema;
+ let schema = unsafe { &mut *schema };
Review Comment:
Makes sense -- let's go with the more surgical approach then 👍
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]