Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Dec 1, 2021
1 parent 7d64b13 commit 6a19930
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arrow/src/array/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,8 @@ impl ArrayData {
assert!(buffer.len() / std::mem::size_of::<T>() >= required_len);

// Justification: buffer size was validated above
let indexes: &[T] = unsafe { &(buffer.typed_data::<T>()[self.offset..self.offset+self.len]) };
let indexes: &[T] =
unsafe { &(buffer.typed_data::<T>()[self.offset..self.offset + self.len]) };

indexes.iter().enumerate().try_for_each(|(i, &dict_index)| {
// Do not check the value is null (value can be arbitrary)
Expand Down

0 comments on commit 6a19930

Please sign in to comment.