Skip to content

Commit

Permalink
Fix deprecated note for Buffer::from_raw_parts (#5190)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrobbel authored Dec 8, 2023
1 parent 93a28a5 commit c821ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arrow-buffer/src/buffer/immutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl Buffer {
///
/// This function is unsafe as there is no guarantee that the given pointer is valid for `len`
/// bytes. If the `ptr` and `capacity` come from a `Buffer`, then this is guaranteed.
#[deprecated(note = "Use From<Vec<T>>")]
#[deprecated(note = "Use Buffer::from_vec")]
pub unsafe fn from_raw_parts(ptr: NonNull<u8>, len: usize, capacity: usize) -> Self {
assert!(len <= capacity);
let layout = Layout::from_size_align(capacity, ALIGNMENT).unwrap();
Expand Down

0 comments on commit c821ae7

Please sign in to comment.