diff --git a/contracts/proxy-lib/tests/sandbox.rs b/contracts/proxy-lib/tests/sandbox.rs index ced810f2d..3f14a1f8e 100644 --- a/contracts/proxy-lib/tests/sandbox.rs +++ b/contracts/proxy-lib/tests/sandbox.rs @@ -138,7 +138,10 @@ async fn test_view_proposal() -> Result<()> { assert_eq!(result_proposal.actions, vec![]); assert_eq!( result_proposal.author_id, - alice_sk.verifying_key().rt().expect("infallible conversion") + alice_sk + .verifying_key() + .rt() + .expect("infallible conversion") ); let non_existent_proposal_id = proxy_helper.generate_proposal_id(); @@ -642,15 +645,18 @@ async fn test_view_proposals() -> Result<()> { assert_eq!(proposals.len(), 3, "Expected to retrieve 3 proposals"); assert_eq!( - proposals[0].id, proposal1_id.rt().expect("infallible conversion"), + proposals[0].id, + proposal1_id.rt().expect("infallible conversion"), "Expected first proposal to have proposal_id 1" ); assert_eq!( - proposals[1].id, proposal2_id.rt().expect("infallible conversion"), + proposals[1].id, + proposal2_id.rt().expect("infallible conversion"), "Expected second proposal to have proposal_id 2" ); assert_eq!( - proposals[2].id, proposal3_id.rt().expect("infallible conversion"), + proposals[2].id, + proposal3_id.rt().expect("infallible conversion"), "Expected third proposal to have proposal_id 3" ); @@ -677,11 +683,13 @@ async fn test_view_proposals() -> Result<()> { ); assert_eq!( - proposals[0].id, proposal2_id.rt().expect("infallible conversion"), + proposals[0].id, + proposal2_id.rt().expect("infallible conversion"), "Expected the first returned proposal to have proposal_id 2" ); assert_eq!( - proposals[1].id, proposal3_id.rt().expect("infallible conversion"), + proposals[1].id, + proposal3_id.rt().expect("infallible conversion"), "Expected the second returned proposal to have proposal_id 3" ); @@ -703,7 +711,8 @@ async fn test_view_proposals() -> Result<()> { "Expected to retrieve 1 proposal starting from offset 3" ); assert_eq!( - single_proposal[0].id, proposal3_id.rt().expect("infallible conversion"), + single_proposal[0].id, + proposal3_id.rt().expect("infallible conversion"), "Expected the proposal to have proposal id 3" ); diff --git a/crates/context/config/src/client/env/proxy/query/proposal_approvers.rs b/crates/context/config/src/client/env/proxy/query/proposal_approvers.rs index 6ee1fa0f9..5e3c01df3 100644 --- a/crates/context/config/src/client/env/proxy/query/proposal_approvers.rs +++ b/crates/context/config/src/client/env/proxy/query/proposal_approvers.rs @@ -1,6 +1,7 @@ -use serde::Serialize; use std::mem; +use serde::Serialize; + use super::ProposalId; use crate::client::env::Method; use crate::client::protocol::near::Near; @@ -30,9 +31,8 @@ impl Method for ProposalApproversRequest { clippy::transmute_undefined_repr, reason = "Repr is a transparent wrapper around T" )] - let members = unsafe { - mem::transmute::>, Vec>(members) - }; + let members = + unsafe { mem::transmute::>, Vec>(members) }; Ok(members) } diff --git a/crates/server/src/admin/handlers/proposals.rs b/crates/server/src/admin/handlers/proposals.rs index d7832efbf..70afddcdd 100644 --- a/crates/server/src/admin/handlers/proposals.rs +++ b/crates/server/src/admin/handlers/proposals.rs @@ -235,4 +235,4 @@ pub async fn get_proposal_approvers_handler( .into_response(), Err(err) => parse_api_error(err).into_response(), } -} \ No newline at end of file +}