Skip to content

Commit befc755

Browse files
andygroveclaude
andcommitted
Fix clippy warning: use iterator instead of index loop
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 97e9b2d commit befc755

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • native/core/src/execution/operators

native/core/src/execution/operators/scan.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,10 @@ impl ScanExec {
268268
// The JVM side exports constant columns (partition/missing) as 1-element arrays
269269
// to avoid materializing N identical values. We detect and expand them here.
270270
if actual_num_rows > 1 {
271-
for i in 0..inputs.len() {
272-
if inputs[i].len() == 1 {
273-
let scalar = ScalarValue::try_from_array(&inputs[i], 0)?;
274-
inputs[i] = scalar.to_array_of_size(actual_num_rows)?;
271+
for col in &mut inputs {
272+
if col.len() == 1 {
273+
let scalar = ScalarValue::try_from_array(col, 0)?;
274+
*col = scalar.to_array_of_size(actual_num_rows)?;
275275
}
276276
}
277277
}

0 commit comments

Comments
 (0)