Skip to content

Commit

Permalink
Apply clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
westonpace committed Jun 20, 2024
1 parent 6132065 commit 4d4c5b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/lance-index/src/vector/ivf/shuffler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ mod test {
}

// Change NUM_BATCHES = 1000 * 1024 and NUM_PARTITIONS to 35000 to test 1B shuffle
const NUM_BATCHES: u32 = 1 * 100;
const NUM_BATCHES: u32 = 100;
const NUM_PARTITIONS: u32 = 1000;
const PQ_DIM: u32 = 48;
const BATCHES_PER_PARTITION: u32 = 10200;
Expand Down Expand Up @@ -1040,7 +1040,7 @@ mod test {
result_stream.reverse();

while let Some(mut stream) = result_stream.pop() {
while let Some(_) = stream.next().await {
while stream.next().await.is_some() {
num_batches += 1
}
}
Expand Down

0 comments on commit 4d4c5b4

Please sign in to comment.