We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55af164 commit 80b71cdCopy full SHA for 80b71cd
arrow-integration-testing/src/lib.rs
@@ -179,7 +179,7 @@ fn cdata_integration_export_schema_from_json(
179
let f = read_json_file_metadata(json_name.to_str()?)?;
180
let c_schema = FFI_ArrowSchema::try_from(&f.schema)?;
181
// Move exported schema into output struct
182
- unsafe { ptr::replace(out, c_schema) };
+ unsafe { ptr::write(out, c_schema) };
183
Ok(())
184
}
185
@@ -193,7 +193,7 @@ fn cdata_integration_export_batch_from_json(
193
let a = StructArray::from(b).into_data();
194
let c_array = FFI_ArrowArray::new(&a);
195
// Move exported array into output struct
196
- unsafe { ptr::replace(out, c_array) };
+ unsafe { ptr::write(out, c_array) };
197
198
199
0 commit comments