diff --git a/Cargo.lock b/Cargo.lock index ee9d7f87b4..afc7dfa3d0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2963,9 +2963,9 @@ dependencies = [ [[package]] name = "jsonrpc-utils" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3f93e501bda012e033e77c7bc87af91b5bcdc509b5c8dd69f46267d9b99b431" +checksum = "b1c90fdbaa763131c108245b8b12fe28b0d6bb5bf992a8a6f4a40433d50f6873" dependencies = [ "anyhow", "axum", @@ -2982,9 +2982,9 @@ dependencies = [ [[package]] name = "jsonrpc-utils-macros" -version = "0.2.0" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8727d2c8bb2833f22c4306879a5cf4cc4a8659170c211e9b523b86aab654f823" +checksum = "c5159dd39c68c8f844b369cb1b46beb253cd22ac70570021c550a6e0dc29f0c3" dependencies = [ "proc-macro2", "quote", diff --git a/rpc/README.md b/rpc/README.md index dfe55f2855..d6efc301c4 100644 --- a/rpc/README.md +++ b/rpc/README.md @@ -4944,9 +4944,9 @@ Unsubscribe Response ``` { - "id": 42, - "jsonrpc": "2.0", - "result": true + "id": 42, + "jsonrpc": "2.0", + "result": true } ``` diff --git a/rpc/src/module/alert.rs b/rpc/src/module/alert.rs index 13edcc12d7..9cbfafd7fd 100644 --- a/rpc/src/module/alert.rs +++ b/rpc/src/module/alert.rs @@ -1,4 +1,3 @@ -#![allow(missing_docs)] use crate::error::RPCError; use async_trait::async_trait; use ckb_jsonrpc_types::Alert; diff --git a/rpc/src/module/chain.rs b/rpc/src/module/chain.rs index eeac5835c6..be3364c4fc 100644 --- a/rpc/src/module/chain.rs +++ b/rpc/src/module/chain.rs @@ -1,4 +1,3 @@ -#![allow(missing_docs)] use crate::error::RPCError; use crate::util::FeeRateCollector; use async_trait::async_trait; diff --git a/rpc/src/module/debug.rs b/rpc/src/module/debug.rs index 25517e952a..350cbdd1c5 100644 --- a/rpc/src/module/debug.rs +++ b/rpc/src/module/debug.rs @@ -1,4 +1,3 @@ -#![allow(missing_docs)] use async_trait::async_trait; use ckb_jsonrpc_types::{ExtraLoggerConfig, MainLoggerConfig}; use ckb_logger_service::Logger; diff --git a/rpc/src/module/experiment.rs b/rpc/src/module/experiment.rs index 88ad52f31d..55edc5dd5a 100644 --- a/rpc/src/module/experiment.rs +++ b/rpc/src/module/experiment.rs @@ -1,4 +1,3 @@ -#![allow(missing_docs)] use crate::error::RPCError; use crate::module::chain::CyclesEstimator; use async_trait::async_trait; diff --git a/rpc/src/module/indexer.rs b/rpc/src/module/indexer.rs index 478d1629e4..194c72be67 100644 --- a/rpc/src/module/indexer.rs +++ b/rpc/src/module/indexer.rs @@ -1,4 +1,3 @@ -#![allow(missing_docs)] use crate::error::RPCError; use async_trait::async_trait; use ckb_indexer::IndexerHandle; diff --git a/rpc/src/module/miner.rs b/rpc/src/module/miner.rs index 53564dc695..e6a344f0c9 100644 --- a/rpc/src/module/miner.rs +++ b/rpc/src/module/miner.rs @@ -1,4 +1,3 @@ -#![allow(missing_docs)] use crate::error::RPCError; use async_trait::async_trait; use ckb_chain::chain::ChainController; diff --git a/rpc/src/module/net.rs b/rpc/src/module/net.rs index 243350fc7d..289ffb1710 100644 --- a/rpc/src/module/net.rs +++ b/rpc/src/module/net.rs @@ -1,4 +1,3 @@ -#![allow(missing_docs)] use crate::error::RPCError; use async_trait::async_trait; use ckb_jsonrpc_types::{ diff --git a/rpc/src/module/pool.rs b/rpc/src/module/pool.rs index 9ba6ee6432..ddee935d25 100644 --- a/rpc/src/module/pool.rs +++ b/rpc/src/module/pool.rs @@ -1,4 +1,3 @@ -#![allow(missing_docs)] use crate::error::RPCError; use async_trait::async_trait; use ckb_chain_spec::consensus::Consensus; diff --git a/rpc/src/module/stats.rs b/rpc/src/module/stats.rs index bd2ccf896a..b9adec9f4b 100644 --- a/rpc/src/module/stats.rs +++ b/rpc/src/module/stats.rs @@ -1,4 +1,3 @@ -#![allow(missing_docs)] use async_trait::async_trait; use ckb_jsonrpc_types::{AlertMessage, ChainInfo, DeploymentInfo, DeploymentPos, DeploymentsInfo}; use ckb_network_alert::notifier::Notifier as AlertNotifier; diff --git a/rpc/src/module/subscription.rs b/rpc/src/module/subscription.rs index 23b463fdc6..3a5c9d2c74 100644 --- a/rpc/src/module/subscription.rs +++ b/rpc/src/module/subscription.rs @@ -1,4 +1,3 @@ -#![allow(missing_docs)] use async_trait::async_trait; use ckb_async_runtime::Handle; use ckb_jsonrpc_types::Topic; @@ -157,9 +156,9 @@ pub trait SubscriptionRpc { /// /// ```json /// { - /// "id": 42, - /// "jsonrpc": "2.0", - /// "result": true + /// "id": 42, + /// "jsonrpc": "2.0", + /// "result": true /// } /// ``` /// diff --git a/rpc/src/module/test.rs b/rpc/src/module/test.rs index b6074733fa..a02dbdec4c 100644 --- a/rpc/src/module/test.rs +++ b/rpc/src/module/test.rs @@ -1,4 +1,3 @@ -#![allow(missing_docs)] use crate::error::RPCError; use async_trait::async_trait; use ckb_chain::chain::ChainController;