diff --git a/contracts/dao/pre-propose/cwd-pre-propose-single-overrule/src/testing/mock_querier.rs b/contracts/dao/pre-propose/cwd-pre-propose-single-overrule/src/testing/mock_querier.rs index a23ea179..0a3ffc71 100644 --- a/contracts/dao/pre-propose/cwd-pre-propose-single-overrule/src/testing/mock_querier.rs +++ b/contracts/dao/pre-propose/cwd-pre-propose-single-overrule/src/testing/mock_querier.rs @@ -231,7 +231,7 @@ pub fn get_dao_with_impostor_timelock() -> HashMap HashMap> { let mut contracts: HashMap> = get_properly_initialized_dao(); // subdao becomes impostor if it is not in the dao's list, so let's just make it empty - contracts.remove(&MOCK_DAO_CORE.to_string()); + contracts.remove(MOCK_DAO_CORE); contracts.insert( MOCK_DAO_CORE.to_string(), Box::new(MockDaoQueries { diff --git a/contracts/subdaos/cwd-subdao-timelock-single/src/testing/tests.rs b/contracts/subdaos/cwd-subdao-timelock-single/src/testing/tests.rs index 1076025f..b8a05e65 100644 --- a/contracts/subdaos/cwd-subdao-timelock-single/src/testing/tests.rs +++ b/contracts/subdaos/cwd-subdao-timelock-single/src/testing/tests.rs @@ -579,7 +579,7 @@ fn test_query_proposals() { limit: None, }; let res = query(deps.as_ref(), mock_env(), query_msg).unwrap(); - let queried_props: ProposalListResponse = from_json(&res).unwrap(); + let queried_props: ProposalListResponse = from_json(res).unwrap(); for (p, i) in queried_props.proposals.iter().zip(1..) { let expected_prop = SingleChoiceProposal { id: i, @@ -595,7 +595,7 @@ fn test_query_proposals() { limit: Some(100), }; let res = query(deps.as_ref(), mock_env(), query_msg).unwrap(); - let queried_props: ProposalListResponse = from_json(&res).unwrap(); + let queried_props: ProposalListResponse = from_json(res).unwrap(); for (p, i) in queried_props.proposals.iter().zip(1..) { let expected_prop = SingleChoiceProposal { id: i, @@ -611,7 +611,7 @@ fn test_query_proposals() { limit: Some(10), }; let res = query(deps.as_ref(), mock_env(), query_msg).unwrap(); - let queried_props: ProposalListResponse = from_json(&res).unwrap(); + let queried_props: ProposalListResponse = from_json(res).unwrap(); for (p, i) in queried_props.proposals.iter().zip(1..) { let expected_prop = SingleChoiceProposal { id: i, @@ -627,7 +627,7 @@ fn test_query_proposals() { limit: None, }; let res = query(deps.as_ref(), mock_env(), query_msg).unwrap(); - let queried_props: ProposalListResponse = from_json(&res).unwrap(); + let queried_props: ProposalListResponse = from_json(res).unwrap(); for (p, i) in queried_props.proposals.iter().zip(51..) { let expected_prop = SingleChoiceProposal { id: i, @@ -643,7 +643,7 @@ fn test_query_proposals() { limit: None, }; let res = query(deps.as_ref(), mock_env(), query_msg).unwrap(); - let queried_props: ProposalListResponse = from_json(&res).unwrap(); + let queried_props: ProposalListResponse = from_json(res).unwrap(); for (p, i) in queried_props.proposals.iter().zip(91..) { let expected_prop = SingleChoiceProposal { id: i,