From 8befef6e462fc67ea89d612b4815caf39a53f8cd Mon Sep 17 00:00:00 2001 From: kikkon Date: Sun, 13 Oct 2024 10:46:27 +0800 Subject: [PATCH] lint --- arrow-array/src/builder/generic_list_view_builder.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/arrow-array/src/builder/generic_list_view_builder.rs b/arrow-array/src/builder/generic_list_view_builder.rs index 6219c660b8f6..0b0a4a0f38e9 100644 --- a/arrow-array/src/builder/generic_list_view_builder.rs +++ b/arrow-array/src/builder/generic_list_view_builder.rs @@ -133,8 +133,12 @@ where #[inline] pub fn append(&mut self, is_valid: bool) { self.offsets_builder.append(self.current_offset); - self.sizes_builder - .append(OffsetSize::from_usize(self.values_builder.len() - self.current_offset.to_usize().unwrap()).unwrap()); + self.sizes_builder.append( + OffsetSize::from_usize( + self.values_builder.len() - self.current_offset.to_usize().unwrap(), + ) + .unwrap(), + ); self.null_buffer_builder.append(is_valid); self.current_offset = OffsetSize::from_usize(self.values_builder.len()).unwrap(); } @@ -154,8 +158,7 @@ where /// See [`Self::append_value`] for an example use. #[inline] pub fn append_null(&mut self) { - self.offsets_builder - .append(self.current_offset); + self.offsets_builder.append(self.current_offset); self.sizes_builder .append(OffsetSize::from_usize(0).unwrap()); self.null_buffer_builder.append_null();