From d2c2648ebf50aeb268175f43d0d5f384426802cf Mon Sep 17 00:00:00 2001 From: Tyera Eulberg Date: Thu, 18 Jan 2024 12:41:54 -0700 Subject: [PATCH] Weird thing to make clippy and compiler agree (https://github.com/rust-lang/rust-clippy/issues/8098) --- rpc/src/rpc.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpc/src/rpc.rs b/rpc/src/rpc.rs index 4a566f26bc1f10..8f777b939cd05c 100644 --- a/rpc/src/rpc.rs +++ b/rpc/src/rpc.rs @@ -527,7 +527,7 @@ impl JsonRpcRequestProcessor { &self, slot: Slot, addresses: &[String], - reward_type_filter: F, + reward_type_filter: &F, config: &RpcEpochConfig, ) -> Result> where @@ -612,7 +612,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) }, @@ -671,7 +671,7 @@ impl JsonRpcRequestProcessor { .get_reward_map( slot, addresses, - |reward_type| -> bool { reward_type == RewardType::Staking }, + &|reward_type| -> bool { reward_type == RewardType::Staking }, &config, ) .await?;