Skip to content

Commit

Permalink
clippy: manual_inspect (#2541)
Browse files Browse the repository at this point in the history
map => insepct
  • Loading branch information
yihau authored Aug 12, 2024
1 parent d34b0b3 commit a99c916
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/banking_stage/latest_unprocessed_votes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
})
})
Expand Down

0 comments on commit a99c916

Please sign in to comment.