Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
emmazzz committed Nov 5, 2024
1 parent d01a218 commit 6a93b79
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions crates/sui-json-rpc/src/governance_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,16 @@ fn backfill_rates(
filled_rates
}

impl SuiRpcModule for GovernanceReadApi {
fn rpc(self) -> RpcModule<Self> {
self.into_rpc()
}

fn rpc_doc_module() -> Module {
GovernanceReadApiOpenRpc::module_doc()
}
}

#[cfg(test)]
mod tests {
use super::*;
Expand Down Expand Up @@ -525,13 +535,3 @@ mod tests {
assert_eq!(backfill_rates(rates), expected);
}
}

impl SuiRpcModule for GovernanceReadApi {
fn rpc(self) -> RpcModule<Self> {
self.into_rpc()
}

fn rpc_doc_module() -> Module {
GovernanceReadApiOpenRpc::module_doc()
}
}

0 comments on commit 6a93b79

Please sign in to comment.