Skip to content

Commit 1801ea2

Browse files
committed
Fix iterator
Signed-off-by: Nicholas Gates <nick@nickgates.com>
1 parent 7669d0d commit 1801ea2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vortex-array/src/arrays/struct_/vtable/operator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ mod tests {
168168
// Verify integer field has the correct filtered values with nulls.
169169
// Selected indices: 0, 1, 2, 4, 5 from [Some(100), None, Some(200), Some(300), None, Some(400)].
170170
let int_vector = fields[0].as_primitive().clone().into_i32();
171-
let int_values: Vec<Option<i32>> = (0..5).map(|i| int_vector.get(i)).collect();
171+
let int_values: Vec<Option<i32>> = (0..5).map(|i| int_vector.get(i).copied()).collect();
172172
assert_eq!(
173173
int_values,
174174
vec![Some(100), None, Some(200), None, Some(400)]

0 commit comments

Comments
 (0)