Skip to content

Commit c54a4d6

Browse files
committed
Clippy lints
1 parent 7ab6b56 commit c54a4d6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • rust/otap-dataflow/crates/pdata/src/otap/transform

rust/otap-dataflow/crates/pdata/src/otap/transform/reindex.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ fn extract_id_column(batch: &RecordBatch, column_path: &str) -> Result<ArrayRef>
363363
})
364364
}
365365

366-
fn sort_vec_to_indices<T: Ord>(values: &Vec<T>) -> Vec<u32> {
366+
fn sort_vec_to_indices<T: Ord>(values: &[T]) -> Vec<u32> {
367367
let mut indices: Vec<u32> = (0u32..values.len() as u32).collect();
368368
indices.sort_by_key(|&i| &values[i as usize]);
369369
indices
@@ -479,7 +479,7 @@ where
479479
{
480480
let mut remaining_slice = &mut sorted_ids[..];
481481
for mapping in mappings.iter() {
482-
if remaining_slice.len() == 0 {
482+
if remaining_slice.is_empty() {
483483
break;
484484
}
485485

0 commit comments

Comments
 (0)