Skip to content

Commit

Permalink
fix clippy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
larry0x committed Jul 10, 2022
1 parent 286bb3c commit 18af528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/asset_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl AssetInfoUnchecked {
AssetInfo::Cw20(api.addr_validate(contract_addr)?)
},
AssetInfoUnchecked::Cw1155(contract_addr, token_id) => {
if token_id.len() == 0 {
if token_id.is_empty() {
return Err(StdError::generic_err("token_id must not be empty"));
}
AssetInfo::Cw1155(api.addr_validate(contract_addr)?, token_id.clone())
Expand Down

0 comments on commit 18af528

Please sign in to comment.