Skip to content

Commit

Permalink
style(fee_distributor): satisfy clippy in test code
Browse files Browse the repository at this point in the history
  • Loading branch information
kaimen-sano committed Jan 7, 2024
1 parent 3cd9f40 commit 0494c05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contracts/liquidity_hub/fee_distributor/src/tests/epoch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ fn test_create_genesis_epoch() {
"bonding_contract_addr".to_string(),
"fee_collector_addr".to_string(),
grace_period,
epoch_config.clone(),
distribution_asset.clone(),
epoch_config,
distribution_asset,
)
.create_new_epoch(mock_info("owner", &[]), |res| {
let err = res.unwrap_err();
Expand Down
4 changes: 2 additions & 2 deletions contracts/liquidity_hub/fee_distributor/src/tests/testing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ fn instantiate_unsuccessfully() {
"bonding_contract_addr".to_string(),
"fee_collector_addr".to_string(),
invalid_grace_period,
epoch_config.clone(),
epoch_config,
distribution_asset.clone(),
);

Expand All @@ -80,7 +80,7 @@ fn instantiate_unsuccessfully() {
duration: invalid_epoch_duration, // a day
genesis_epoch: Uint64::new(1_678_802_400_000_000_000_u64), // March 14, 2023 2:00:00 PM
},
distribution_asset.clone(),
distribution_asset,
);
}

Expand Down

0 comments on commit 0494c05

Please sign in to comment.