From 6a93b79bccf82fa8d19060da66dd6248fb5756a1 Mon Sep 17 00:00:00 2001 From: Emma Zhong Date: Tue, 5 Nov 2024 13:44:40 -0800 Subject: [PATCH] fix clippy --- crates/sui-json-rpc/src/governance_api.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/crates/sui-json-rpc/src/governance_api.rs b/crates/sui-json-rpc/src/governance_api.rs index 2b2a2f3c2303b..f08d4366264ce 100644 --- a/crates/sui-json-rpc/src/governance_api.rs +++ b/crates/sui-json-rpc/src/governance_api.rs @@ -485,6 +485,16 @@ fn backfill_rates( filled_rates } +impl SuiRpcModule for GovernanceReadApi { + fn rpc(self) -> RpcModule { + self.into_rpc() + } + + fn rpc_doc_module() -> Module { + GovernanceReadApiOpenRpc::module_doc() + } +} + #[cfg(test)] mod tests { use super::*; @@ -525,13 +535,3 @@ mod tests { assert_eq!(backfill_rates(rates), expected); } } - -impl SuiRpcModule for GovernanceReadApi { - fn rpc(self) -> RpcModule { - self.into_rpc() - } - - fn rpc_doc_module() -> Module { - GovernanceReadApiOpenRpc::module_doc() - } -}