Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikkon committed Oct 25, 2024
1 parent ec84f15 commit 8befef6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions arrow-array/src/builder/generic_list_view_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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();
Expand Down

0 comments on commit 8befef6

Please sign in to comment.