This is an automated email from the ASF dual-hosted git repository.
jakevin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/master by this push:
new a31005605e Mark GenericByteArray::new_unchecked unsafe (#4584)
a31005605e is described below
commit a31005605ead4b70bd89fa29bd09d7b1613636dc
Author: Raphael Taylor-Davies <[email protected]>
AuthorDate: Sun Jul 30 09:31:15 2023 +0100
Mark GenericByteArray::new_unchecked unsafe (#4584)
---
arrow-array/src/array/byte_array.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arrow-array/src/array/byte_array.rs
b/arrow-array/src/array/byte_array.rs
index 0a18062d9a..be10a4508d 100644
--- a/arrow-array/src/array/byte_array.rs
+++ b/arrow-array/src/array/byte_array.rs
@@ -159,7 +159,7 @@ impl<T: ByteArrayType> GenericByteArray<T> {
/// # Safety
///
/// Safe if [`Self::try_new`] would not error
- pub fn new_unchecked(
+ pub unsafe fn new_unchecked(
offsets: OffsetBuffer<T::Offset>,
values: Buffer,
nulls: Option<NullBuffer>,