Skip to content

Commit

Permalink
still use zip
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Sep 20, 2024
1 parent 3a0a426 commit 8c36626
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/src/util/row_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,8 @@ mod tests {
let expected_vnodes = vnodes().cycle();
let actual_vnodes = row_ids.iter().map(|&r| vnode_of(r));

for (expected, actual) in expected_vnodes.zip_eq(actual_vnodes) {
#[expect(clippy::disallowed_methods)] // `expected_vnodes` is an endless cycle iterator
for (expected, actual) in expected_vnodes.zip(actual_vnodes) {
assert_eq!(expected, actual);
}

Expand Down

0 comments on commit 8c36626

Please sign in to comment.