From 0e4b3dd7cd73426b1209ebe0323087452a7c8b91 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Wed, 8 Jan 2025 20:21:37 +0100 Subject: [PATCH] Clippy fixes --- src/array/list/mod.rs | 4 +++- src/offset.rs | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/array/list/mod.rs b/src/array/list/mod.rs index 6dbf0550ee..d54c541910 100644 --- a/src/array/list/mod.rs +++ b/src/array/list/mod.rs @@ -249,7 +249,7 @@ impl From> for arrow_array::GenericListArray { fn from(value: ListArray) -> Self { - let field = ListArray::::get_child_field(&value.data_type()); + let field = ListArray::::get_child_field(value.data_type()); let field = Arc::new(arrow_schema::Field::new( "item", field.clone().data_type.into(), @@ -282,6 +282,7 @@ impl From From { fn from(offset_buffer2: arrow_buffer::OffsetBuffer) -> 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()) } }