Skip to content

Commit 8156554

Browse files
committed
fix
Signed-off-by: Joe Isaacs <[email protected]>
1 parent 44e8154 commit 8156554

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎encodings/sparse/src/lib.rs‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,9 @@ impl VTable for Sparse {
280280
parts.slots[SparseSlots::PATCH_CHUNK_OFFSETS] = None;
281281
unsafe { Array::from_parts_unchecked(parts) }
282282
}
283-
Err(array) => Sparse::try_new_from_patches(patches, array.fill_scalar().clone())?,
283+
Err(array) => unsafe {
284+
Sparse::new_unchecked(patches, array.fill_scalar().clone())
285+
},
284286
}
285287
} else {
286288
array

0 commit comments

Comments
 (0)