Skip to content

Commit 7cfd4d0

Browse files
committed
improve naming
1 parent 7cf07e1 commit 7cfd4d0

File tree

1 file changed

+7
-7
lines changed
  • crates/utils/re_arrow_combinators/src

1 file changed

+7
-7
lines changed

crates/utils/re_arrow_combinators/src/cast.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,15 @@ impl Transform for ListToFixedSizeList {
107107
// Check that each list has exactly the expected length (or is null).
108108
let offsets = source.value_offsets();
109109
let expected_length = self.value_length as usize;
110-
for i in 0..source.len() {
111-
if source.is_valid(i) {
112-
let start = offsets[i] as usize;
113-
let end = offsets[i + 1] as usize;
114-
let length = end - start;
115-
if length != expected_length {
110+
for list_index in 0..source.len() {
111+
if source.is_valid(list_index) {
112+
let start = offsets[list_index] as usize;
113+
let end = offsets[list_index + 1] as usize;
114+
let list_length = end - start;
115+
if list_length != expected_length {
116116
return Err(Error::UnexpectedListValueLength {
117117
expected: expected_length,
118-
actual: length,
118+
actual: list_length,
119119
});
120120
}
121121
}

0 commit comments

Comments
 (0)