From a99c916b36bcee8ca2f8568b14db3d42ff79edb1 Mon Sep 17 00:00:00 2001 From: Yihau Chen Date: Mon, 12 Aug 2024 10:39:46 +0800 Subject: [PATCH] clippy: manual_inspect (#2541) map => insepct --- core/src/banking_stage/latest_unprocessed_votes.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/banking_stage/latest_unprocessed_votes.rs b/core/src/banking_stage/latest_unprocessed_votes.rs index e7aaf7d561e6d4..52b520b8a0322b 100644 --- a/core/src/banking_stage/latest_unprocessed_votes.rs +++ b/core/src/banking_stage/latest_unprocessed_votes.rs @@ -354,9 +354,8 @@ impl LatestUnprocessedVotes { if !Self::is_valid_for_our_fork(&latest_vote, &slot_hashes) { return None; } - latest_vote.take_vote().map(|vote| { + latest_vote.take_vote().inspect(|_vote| { self.num_unprocessed_votes.fetch_sub(1, Ordering::Relaxed); - vote }) }) })