Skip to content

Commit

Permalink
Remove unnecessary Buffer::from_slice_ref reference
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold committed Nov 22, 2022
1 parent f091cbb commit 629c8cb
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 @@ -55,7 +55,7 @@ impl Buffer {
}

/// Initializes a [Buffer] from a slice of items.
pub fn from_slice_ref<U: ArrowNativeType, T: AsRef<[U]>>(items: &T) -> Self {
pub fn from_slice_ref<U: ArrowNativeType, T: AsRef<[U]>>(items: T) -> Self {
let slice = items.as_ref();
let capacity = slice.len() * std::mem::size_of::<U>();
let mut buffer = MutableBuffer::with_capacity(capacity);
Expand Down

0 comments on commit 629c8cb

Please sign in to comment.