Skip to content

Commit

Permalink
Weird thing to make clippy and compiler agree (rust-lang/rust-clippy#…
Browse files Browse the repository at this point in the history
  • Loading branch information
CriesofCarrots committed Jan 18, 2024
1 parent a56e364 commit bf01475
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rpc/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ impl JsonRpcRequestProcessor {
&self,
slot: Slot,
addresses: &[String],
reward_type_filter: F,
reward_type_filter: &F,
config: &RpcEpochConfig,
) -> Result<HashMap<String, (Reward, Slot)>>
where
Expand Down Expand Up @@ -610,7 +610,7 @@ impl JsonRpcRequestProcessor {
self.get_reward_map(
first_confirmed_block_in_epoch,
&addresses,
|reward_type| -> bool {
&|reward_type| -> bool {
reward_type == RewardType::Voting
|| (!partitioned_epoch_reward_enabled && reward_type == RewardType::Staking)
},
Expand Down Expand Up @@ -669,7 +669,7 @@ impl JsonRpcRequestProcessor {
.get_reward_map(
slot,
addresses,
|reward_type| -> bool { reward_type == RewardType::Staking },
&|reward_type| -> bool { reward_type == RewardType::Staking },
&config,
)
.await?;
Expand Down

0 comments on commit bf01475

Please sign in to comment.