From ec5bca383dc9bfe7cfd5dfc20309af86a5ac58fc 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 0e044dc8f26f..cc152e643313 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); }