Skip to content

Commit

Permalink
Fix stack size clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Feb 5, 2025
1 parent 200ff53 commit adf95fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions beacon_node/beacon_chain/tests/rewards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,7 @@ async fn test_rewards_base_multi_inclusion() {
.extend_slots(E::slots_per_epoch() as usize * 2 - 4)
.await;

// pin to reduce stack size for clippy
Box::pin(check_all_base_rewards(&harness, initial_balances)).await;
check_all_base_rewards(&harness, initial_balances).await;
}

#[tokio::test]
Expand Down Expand Up @@ -583,7 +582,8 @@ async fn check_all_base_rewards(
harness: &BeaconChainHarness<EphemeralHarnessType<E>>,
balances: Vec<u64>,
) {
check_all_base_rewards_for_subset(harness, balances, vec![]).await;
// The box reduces the size on the stack for a clippy lint.
Box::pin(check_all_base_rewards_for_subset(harness, balances, vec![])).await;
}

async fn check_all_base_rewards_for_subset(
Expand Down

0 comments on commit adf95fa

Please # to comment.