From 8c366260d61ab0be4dca2a266400aa6098d77ebc Mon Sep 17 00:00:00 2001 From: Bugen Zhao Date: Tue, 17 Sep 2024 15:31:30 +0800 Subject: [PATCH] still use zip Signed-off-by: Bugen Zhao --- src/common/src/util/row_id.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/src/util/row_id.rs b/src/common/src/util/row_id.rs index 0e044dc8f26f4..cc152e6433136 100644 --- a/src/common/src/util/row_id.rs +++ b/src/common/src/util/row_id.rs @@ -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); }