diff --git a/Cargo.lock b/Cargo.lock index 854a60aae1..c0f711abbf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2788,9 +2788,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", @@ -2807,9 +2807,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/Cargo.toml b/rpc/Cargo.toml index 8f6d59f5b5..7290923207 100644 --- a/rpc/Cargo.toml +++ b/rpc/Cargo.toml @@ -24,7 +24,7 @@ ckb-app-config = { path = "../util/app-config", version = "= 0.112.0-pre" } ckb-constant = { path = "../util/constant", version = "= 0.112.0-pre" } jsonrpc-core = "18.0" serde_json = "1.0" -jsonrpc-utils = { version = "0.2.1", features = ["server", "macros", "axum"] } +jsonrpc-utils = { version = "0.2.2", features = ["server", "macros", "axum"] } ckb-jsonrpc-types = { path = "../util/jsonrpc-types", version = "= 0.112.0-pre" } ckb-verification = { path = "../verification", version = "= 0.112.0-pre" } ckb-verification-traits = { path = "../verification/traits", version = "= 0.112.0-pre" } 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 aec813453f..4214332863 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 39860fdc3d..0d62d15a78 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 5ec06f33f2..a67adaa9fd 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..2a8246c74e 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; diff --git a/rpc/src/module/test.rs b/rpc/src/module/test.rs index d2c6d1be5d..aef4e784ca 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;