jq-rs icon indicating copy to clipboard operation
jq-rs copied to clipboard

Question: why is jv_copy required?

Open SOF3 opened this issue 1 year ago • 0 comments

Question on https://github.com/onelson/jq-rs/blob/5a50b86010377178672266bcafd7bd925ac252c6/src/jq.rs#L104

I understand that we want to avoid double drop based on the comments above. But why do we jv_copy the initial_ptr instead of using ManuallyDrop?

SOF3 avatar May 03 '24 04:05 SOF3