viirya commented on issue #1425: URL: https://github.com/apache/arrow-rs/issues/1425#issuecomment-1065805038
> It should work otherwise the change you make should also break. they both do `*array` > > ```rust > let ffi_array = (*array).clone(); > ``` No...It is basically about Rust ownership rule. In short, `Arc::new(*array)` will try to own the data behind `array` raw pointer. So Rust complains it cannot move the data. `(*array).clone()` doesn't move data but clone it. -- 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]
