Try to fix warning

unused return value of `Rc::<T, A>::into_raw` that must be used
This commit is contained in:
gwenn 2024-03-10 09:22:23 +01:00
parent f36a904b77
commit ed061597d8

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
}) })
} }
} }