Skip to content

Commit

Permalink
fix clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachelint committed Oct 30, 2024
1 parent a61cd52 commit ef0bde8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 +1146,8 @@ mod tests {
};

let sub_batch = group_values.emit(EmitTo::First(num_emit)).unwrap();
let sub_batch = RecordBatch::try_new(schema.clone(), sub_batch).unwrap();
let sub_batch =
RecordBatch::try_new(Arc::clone(&schema), sub_batch).unwrap();
actual_sub_batches.push(sub_batch);

num_remaining_rows -= num_emit;
Expand Down Expand Up @@ -1467,7 +1468,7 @@ mod tests {

fn load_to_group_values(&self, group_values: &mut impl GroupValues) {
for batch in self.test_batches.iter() {
group_values.intern(&batch, &mut vec![]).unwrap();
group_values.intern(batch, &mut vec![]).unwrap();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ mod tests {
equal_to_results: &mut Vec<bool>| {
let iter = lhs_rows.iter().zip(rhs_rows.iter());
for (idx, (&lhs_row, &rhs_row)) in iter.enumerate() {
equal_to_results[idx] = builder.equal_to(lhs_row, &input_array, rhs_row);
equal_to_results[idx] = builder.equal_to(lhs_row, input_array, rhs_row);
}
};

Expand Down Expand Up @@ -1310,7 +1310,7 @@ mod tests {
equal_to_results: &mut Vec<bool>| {
let iter = lhs_rows.iter().zip(rhs_rows.iter());
for (idx, (&lhs_row, &rhs_row)) in iter.enumerate() {
equal_to_results[idx] = builder.equal_to(lhs_row, &input_array, rhs_row);
equal_to_results[idx] = builder.equal_to(lhs_row, input_array, rhs_row);
}
};

Expand Down Expand Up @@ -1500,7 +1500,7 @@ mod tests {
equal_to_results: &mut Vec<bool>| {
let iter = lhs_rows.iter().zip(rhs_rows.iter());
for (idx, (&lhs_row, &rhs_row)) in iter.enumerate() {
equal_to_results[idx] = builder.equal_to(lhs_row, &input_array, rhs_row);
equal_to_results[idx] = builder.equal_to(lhs_row, input_array, rhs_row);
}
};

Expand Down Expand Up @@ -1703,7 +1703,7 @@ mod tests {
equal_to_results: &mut Vec<bool>| {
let iter = lhs_rows.iter().zip(rhs_rows.iter());
for (idx, (&lhs_row, &rhs_row)) in iter.enumerate() {
equal_to_results[idx] = builder.equal_to(lhs_row, &input_array, rhs_row);
equal_to_results[idx] = builder.equal_to(lhs_row, input_array, rhs_row);
}
};

Expand Down

0 comments on commit ef0bde8

Please sign in to comment.