From 18af52816e552027f2526a13c9d158ae1052f4e6 Mon Sep 17 00:00:00 2001 From: larry <26318510+larry0x@users.noreply.github.com> Date: Sun, 10 Jul 2022 18:03:57 +0100 Subject: [PATCH] fix clippy issue --- src/asset_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asset_info.rs b/src/asset_info.rs index 8a2afb3..d1d54e2 100644 --- a/src/asset_info.rs +++ b/src/asset_info.rs @@ -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())