Skip to content

Commit

Permalink
clipy
Browse files Browse the repository at this point in the history
  • Loading branch information
max-dfinity committed Mar 4, 2025
1 parent 560e9c7 commit f494ac1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion rs/nns/governance/src/governance/benches.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::benches_util::check_projected_instructions;
use crate::canister_state::CanisterRandomnessGenerator;
use crate::governance::REWARD_DISTRIBUTION_PERIOD_SECONDS;
use crate::pb::v1::{RewardEvent, WaitForQuietState};
use crate::test_utils::MockRandomness;
Expand Down
2 changes: 1 addition & 1 deletion rs/nns/governance/src/timer_tasks/distribute_rewards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ mod tests {

// Schedule the rewards distribution
governance.schedule_pending_rewards_distribution(1, distribution.clone());
let timer_id = REWARDS_TIMER_ID.with(|id| id.borrow().clone().unwrap());
let timer_id = REWARDS_TIMER_ID.with(|id| (*id.borrow()).unwrap());
assert_eq!(existing_timer_ids().len(), 1);

// Attempt to schedule the task again, which should fail
Expand Down

0 comments on commit f494ac1

Please sign in to comment.