Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
swelf19 committed Nov 11, 2024
1 parent 40760f3 commit 0112676
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ pub fn get_dao_with_impostor_timelock() -> HashMap<String, Box<dyn ContractQueri
pub fn get_dao_with_impostor_subdao() -> HashMap<String, Box<dyn ContractQuerier>> {
let mut contracts: HashMap<String, Box<dyn ContractQuerier>> = 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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 0112676

Please sign in to comment.