From c6d6e9cc718dbcf0cd6e76e240b98c65315b73ac Mon Sep 17 00:00:00 2001 From: "Jorge C. Leitao" Date: Thu, 13 Jan 2022 21:54:11 +0000 Subject: [PATCH] Fixed clippy --- src/ffi/ffi.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ffi/ffi.rs b/src/ffi/ffi.rs index 1d028d8d6d0..73c999a36ac 100644 --- a/src/ffi/ffi.rs +++ b/src/ffi/ffi.rs @@ -53,6 +53,13 @@ pub struct Ffi_ArrowArray { private_data: *mut ::std::os::raw::c_void, } +// Sound because the arrow specification does not allow multiple implementations +// to change this struct +// This is intrinsically impossible to prove because the implementations agree +// on this as part of the Arrow specification +unsafe impl Send for Ffi_ArrowArray {} +unsafe impl Sync for Ffi_ArrowArray {} + impl Drop for Ffi_ArrowArray { fn drop(&mut self) { match self.release {