Skip to content

Commit

Permalink
fix: make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
kerber0x committed Mar 28, 2024
1 parent c77bc15 commit 180846f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion contracts/alliance-hub/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub fn migrate(deps: DepsMut, _env: Env, msg: MigrateMsg) -> Result<Response, Co

if storage_version <= Version::parse("0.1.1")? {
// parse operator address
let operator = deps.api.addr_validate(&msg.operator.as_str())?;
let operator = deps.api.addr_validate(msg.operator.as_str())?;

#[cw_serde]
pub struct ConfigV010 {
Expand Down
6 changes: 3 additions & 3 deletions contracts/alliance-hub/src/tests/rewards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ fn test_set_asset_reward_distribution() {
// only the governance or operator can set the asset reward distribution
assert_eq!(err, ContractError::Unauthorized {});

let res = execute(
execute(
deps.as_mut(),
mock_env(),
mock_info("operator", &[]),
Expand All @@ -608,7 +608,7 @@ fn test_set_asset_reward_distribution() {
let reward_distribution = query_asset_reward_distribution(deps.as_ref());
assert_eq!(reward_distribution, asset_distribution_1());

let res = execute(
execute(
deps.as_mut(),
mock_env(),
mock_info("operator", &[]),
Expand All @@ -619,7 +619,7 @@ fn test_set_asset_reward_distribution() {
let reward_distribution = query_asset_reward_distribution(deps.as_ref());
assert_eq!(reward_distribution, asset_distribution_2());

let res = execute(
execute(
deps.as_mut(),
mock_env(),
mock_info("gov", &[]),
Expand Down
2 changes: 1 addition & 1 deletion packages/alliance-protocol/src/alliance_protocol.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::alliance_oracle_types::ChainId;
use cosmwasm_schema::{cw_serde, QueryResponses};
use cosmwasm_std::{Addr, Binary, Decimal, Timestamp, Uint128};
use cosmwasm_std::{Addr, Decimal, Timestamp, Uint128};
use cw20::Cw20ReceiveMsg;
use cw_asset::{Asset, AssetInfo};
use std::collections::{HashMap, HashSet};
Expand Down

0 comments on commit 180846f

Please sign in to comment.