From 03992175ef385b8d07b11ca60a31a49094ca22b4 Mon Sep 17 00:00:00 2001 From: git-hulk Date: Wed, 27 Mar 2024 20:31:18 +0800 Subject: [PATCH] Fix the compile error while running the cargo clippy Signed-off-by: git-hulk --- harness/tests/integration_cases/test_raft.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/harness/tests/integration_cases/test_raft.rs b/harness/tests/integration_cases/test_raft.rs index 180cc5e8..f357b7ed 100644 --- a/harness/tests/integration_cases/test_raft.rs +++ b/harness/tests/integration_cases/test_raft.rs @@ -5301,7 +5301,7 @@ fn test_election_with_priority_log() { (false, false, true, 1, 1, 3, 1, StateRole::Leader), ]; - for (_i, &(l1, l2, l3, p1, p2, p3, id, state)) in tests.iter().enumerate() { + for &(l1, l2, l3, p1, p2, p3, id, state) in tests.iter() { let l = default_logger(); let mut n1 = new_test_raft(1, vec![1, 2, 3], 10, 1, new_storage(), &l); let mut n2 = new_test_raft(2, vec![1, 2, 3], 10, 1, new_storage(), &l);