From ee6e04e16183ac640373400d45f5f3b490e3c923 Mon Sep 17 00:00:00 2001 From: sotnikov-s Date: Fri, 8 Nov 2024 13:02:30 +0300 Subject: [PATCH] fix clippy warnings --- .../howto/register_custom_kv_icq/src/contract.rs | 2 +- .../interchainqueries/howto/register_kv_icq/src/contract.rs | 2 +- .../interchainqueries/howto/register_tx_icq/src/contract.rs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/contracts/docs/interchainqueries/howto/register_custom_kv_icq/src/contract.rs b/contracts/docs/interchainqueries/howto/register_custom_kv_icq/src/contract.rs index ced0444..e7a1e9c 100644 --- a/contracts/docs/interchainqueries/howto/register_custom_kv_icq/src/contract.rs +++ b/contracts/docs/interchainqueries/howto/register_custom_kv_icq/src/contract.rs @@ -83,7 +83,7 @@ pub fn register_account_query( query_type: QueryType::KV.into(), keys: vec![KvKey { path: AUTH_STORE_KEY.to_string(), - key: key, + key, }], transactions_filter: String::default(), connection_id, diff --git a/contracts/docs/interchainqueries/howto/register_kv_icq/src/contract.rs b/contracts/docs/interchainqueries/howto/register_kv_icq/src/contract.rs index e289527..f3c0bf0 100644 --- a/contracts/docs/interchainqueries/howto/register_kv_icq/src/contract.rs +++ b/contracts/docs/interchainqueries/howto/register_kv_icq/src/contract.rs @@ -80,7 +80,7 @@ pub fn register_balances_query( Ok(Response::new().add_submessage(SubMsg { id: REGISTER_BALANCES_ICQ_REPLY_ID, payload: to_json_binary(&addr)?, - msg: msg, + msg, gas_limit: None, reply_on: ReplyOn::Success, })) diff --git a/contracts/docs/interchainqueries/howto/register_tx_icq/src/contract.rs b/contracts/docs/interchainqueries/howto/register_tx_icq/src/contract.rs index 4375c66..e2c1b8e 100644 --- a/contracts/docs/interchainqueries/howto/register_tx_icq/src/contract.rs +++ b/contracts/docs/interchainqueries/howto/register_tx_icq/src/contract.rs @@ -166,6 +166,7 @@ pub fn sudo_tx_query_result( continue; } + #[allow(clippy::unwrap_used)] let undelegation_amount = undelegate_msg.amount.unwrap(); new_undelegations.push(Coin { denom: undelegation_amount.denom,