From d64fbebd5e27af0426173fc7f21adabe80b9db64 Mon Sep 17 00:00:00 2001 From: Jake Hartnell Date: Thu, 14 Sep 2023 20:21:26 -0700 Subject: [PATCH] Clippy. : ) --- contracts/voting/dao-voting-cw721-staked/src/contract.rs | 4 ++-- contracts/voting/dao-voting-token-staked/src/contract.rs | 6 +++--- .../src/tests/test_tube/integration_tests.rs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/contracts/voting/dao-voting-cw721-staked/src/contract.rs b/contracts/voting/dao-voting-cw721-staked/src/contract.rs index 4cfd0d850..de0ac036f 100644 --- a/contracts/voting/dao-voting-cw721-staked/src/contract.rs +++ b/contracts/voting/dao-voting-cw721-staked/src/contract.rs @@ -194,7 +194,7 @@ pub fn instantiate( }, FACTORY_EXECUTE_REPLY_ID, ))), - _ => return Err(ContractError::UnsupportedFactoryMsg {}), + _ => Err(ContractError::UnsupportedFactoryMsg {}), }, } } @@ -756,7 +756,7 @@ pub fn reply(deps: DepsMut, _env: Env, msg: Reply) -> Result return Err(ContractError::Unauthorized {}), + None => Err(ContractError::Unauthorized {}), } } _ => Err(ContractError::UnknownReplyId { id: msg.id }), diff --git a/contracts/voting/dao-voting-token-staked/src/contract.rs b/contracts/voting/dao-voting-token-staked/src/contract.rs index 50a0aff7d..adb6dcbe1 100644 --- a/contracts/voting/dao-voting-token-staked/src/contract.rs +++ b/contracts/voting/dao-voting-token-staked/src/contract.rs @@ -142,7 +142,7 @@ pub fn instantiate( }, FACTORY_EXECUTE_REPLY_ID, ))), - _ => return Err(ContractError::UnsupportedFactoryMsg {}), + _ => Err(ContractError::UnsupportedFactoryMsg {}), }, } } @@ -732,7 +732,7 @@ pub fn reply(deps: DepsMut, env: Env, msg: Reply) -> Result Result return Err(ContractError::Unauthorized {}), + None => Err(ContractError::Unauthorized {}), } } _ => Err(ContractError::UnknownReplyId { id: msg.id }), diff --git a/contracts/voting/dao-voting-token-staked/src/tests/test_tube/integration_tests.rs b/contracts/voting/dao-voting-token-staked/src/tests/test_tube/integration_tests.rs index bf55cacc7..6083da364 100644 --- a/contracts/voting/dao-voting-token-staked/src/tests/test_tube/integration_tests.rs +++ b/contracts/voting/dao-voting-token-staked/src/tests/test_tube/integration_tests.rs @@ -402,7 +402,7 @@ fn test_factory() { }; // Instantiate DAO - let dao = DaoCore::new(&app, &msg, &accounts[0]).unwrap(); + let _dao = DaoCore::new(&app, &msg, &accounts[0]).unwrap(); // TODO query voting module