Skip to content

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jan 8, 2025
1 parent fe864b7 commit 0e4b3dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/array/list/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ impl<O: Offset + arrow_array::OffsetSizeTrait> From<ListArray<O>>
for arrow_array::GenericListArray<O>
{
fn from(value: ListArray<O>) -> Self {
let field = ListArray::<O>::get_child_field(&value.data_type());
let field = ListArray::<O>::get_child_field(value.data_type());
let field = Arc::new(arrow_schema::Field::new(
"item",
field.clone().data_type.into(),
Expand Down Expand Up @@ -282,6 +282,7 @@ impl<O: Offset + arrow_array::OffsetSizeTrait> From<arrow_array::GenericListArra
#[cfg(feature = "arrow")]
#[test]
fn test_arrow_list_array_conversion_non_null() {
#![allow(clippy::zero_prefixed_literal)]
/*
We build this:
Expand Down Expand Up @@ -330,6 +331,7 @@ fn test_arrow_list_array_conversion_non_null() {
#[cfg(feature = "arrow")]
#[test]
fn test_arrow_list_array_conversion_nullable() {
#![allow(clippy::zero_prefixed_literal)]
/*
We build this:
Expand Down
2 changes: 1 addition & 1 deletion src/offset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ impl<O: Offset + arrow_buffer::ArrowNativeType> From<arrow_buffer::OffsetBuffer<
for OffsetsBuffer<O>
{
fn from(offset_buffer2: arrow_buffer::OffsetBuffer<O>) -> Self {
let buffer1: arrow_buffer::Buffer = offset_buffer2.into_inner().into_inner().into();
let buffer1: arrow_buffer::Buffer = offset_buffer2.into_inner().into_inner();
// SAFETY: the input buffer is guaranteed to be valid
unsafe { Self::new_unchecked(buffer1.into()) }
}
Expand Down

0 comments on commit 0e4b3dd

Please sign in to comment.