Skip to content

Commit

Permalink
Fix clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
piobab committed Jan 10, 2024
1 parent 389ff7d commit 04d093e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/testing/cw20_querier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl Cw20Querier {
let contract_addr = Addr::unchecked(contract);
let user_addr = Addr::unchecked(user);

let contract_balances = self.balances.entry(contract_addr).or_insert_with(HashMap::new);
let contract_balances = self.balances.entry(contract_addr).or_default();
contract_balances.insert(user_addr, Uint128::new(balance));
}
}
1 change: 1 addition & 0 deletions src/testing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ mod custom_mock_querier;
mod cw20_querier;
mod helpers;

#[allow(unused_imports)]
pub use custom_mock_querier::CustomMockQuerier;
pub use helpers::mock_dependencies;

0 comments on commit 04d093e

Please sign in to comment.