Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clippy errors from latest rust stable #793

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions contracts/external/cw-fund-distributor/src/testing/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ fn test_query_cw20_entitlements() {
.unwrap();

assert_eq!(res.len(), 1);
let entitlement = res.get(0).unwrap();
let entitlement = res.first().unwrap();
assert_eq!(entitlement.amount.u128(), 500000);
assert_eq!(entitlement.token_contract, token_address);
}
Expand Down Expand Up @@ -1451,7 +1451,7 @@ fn test_query_native_entitlements() {
.unwrap();

assert_eq!(res.len(), 1);
let entitlement = res.get(0).unwrap();
let entitlement = res.first().unwrap();
assert_eq!(entitlement.amount.u128(), 500000);
assert_eq!(entitlement.denom, FEE_DENOM);
}
Expand Down Expand Up @@ -1601,7 +1601,7 @@ fn test_query_cw20_tokens() {
.unwrap();

assert_eq!(res.len(), 1);
let cw20 = res.get(0).unwrap();
let cw20 = res.first().unwrap();
assert_eq!(cw20.token, "contract1");
assert_eq!(cw20.contract_balance.u128(), 500000);
}
Expand Down Expand Up @@ -1642,7 +1642,7 @@ fn test_query_native_denoms() {

// assert distributor now contains one expected native token
assert_eq!(res.len(), 1);
let denom = res.get(0).unwrap();
let denom = res.first().unwrap();
assert_eq!(denom.denom, FEE_DENOM.to_string());
assert_eq!(denom.contract_balance.u128(), 500000);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/cw-paginate-storage/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ mod tests {
map.save(
&mut deps.storage,
ctr,
&Uint128::new(ctr.try_into().unwrap()),
&Uint128::new(<u32 as std::convert::Into<u128>>::into(ctr)),
env.block.height,
)
.unwrap();
Expand Down
Loading