Merge pull request #1467 from gwenn/array_fix

Try to fix warning
This commit is contained in:
gwenn
2024-03-10 09:30:35 +01:00
committed by GitHub

View File

@@ -759,10 +759,9 @@ impl Values<'_> {
None None
} else { } else {
Some(unsafe { Some(unsafe {
let rc = array::Array::from_raw(ptr as *const Vec<Value>); let ptr = ptr as *const Vec<Value>;
let array = rc.clone(); array::Array::increment_strong_count(ptr); // don't consume it
array::Array::into_raw(rc); // don't consume it array::Array::from_raw(ptr)
array
}) })
} }
} }