From a0b2d74200944fbdee6247cd3dbb2774f36ba7b3 Mon Sep 17 00:00:00 2001 From: Soares Chen Date: Tue, 18 Jan 2022 19:55:24 +0800 Subject: [PATCH 1/6] Fix cargo doc errors --- Cargo.lock | 25 ++++++------------- modules/src/applications/mod.rs | 2 +- .../clients/ics07_tendermint/client_state.rs | 2 +- modules/src/core/ics23_commitment/merkle.rs | 2 +- relayer/src/chain.rs | 1 - 5 files changed, 10 insertions(+), 22 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ecb86b18d3..7fa9be5aa0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -24,7 +24,7 @@ dependencies = [ "toml", "tracing", "tracing-log", - "tracing-subscriber 0.3.5", + "tracing-subscriber", "wait-timeout", ] @@ -1310,7 +1310,7 @@ dependencies = [ "thiserror", "time", "tracing", - "tracing-subscriber 0.3.6", + "tracing-subscriber", ] [[package]] @@ -1342,7 +1342,7 @@ dependencies = [ "tokio", "toml", "tracing", - "tracing-subscriber 0.3.6", + "tracing-subscriber", ] [[package]] @@ -1411,7 +1411,7 @@ dependencies = [ "toml", "tonic", "tracing", - "tracing-subscriber 0.3.6", + "tracing-subscriber", "uint", ] @@ -1453,7 +1453,7 @@ dependencies = [ "tokio", "toml", "tracing", - "tracing-subscriber 0.3.6", + "tracing-subscriber", ] [[package]] @@ -1747,7 +1747,7 @@ dependencies = [ "tempfile", "thiserror", "tracing", - "tracing-subscriber 0.3.6", + "tracing-subscriber", "ureq", ] @@ -3405,7 +3405,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d686ec1c0f384b1277f097b2f279a2ecc11afe8c133c1aabf036a27cb4cd206e" dependencies = [ "tracing", - "tracing-subscriber 0.3.6", + "tracing-subscriber", ] [[package]] @@ -3439,17 +3439,6 @@ dependencies = [ "tracing-core", ] -[[package]] -name = "tracing-subscriber" -version = "0.2.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e0d2eaa99c3c2e41547cfa109e910a68ea03823cccad4a0525dcbc9b01e8c71" -dependencies = [ - "sharded-slab", - "thread_local", - "tracing-core", -] - [[package]] name = "tracing-subscriber" version = "0.3.6" diff --git a/modules/src/applications/mod.rs b/modules/src/applications/mod.rs index e40402d145..ba4fb6a29b 100644 --- a/modules/src/applications/mod.rs +++ b/modules/src/applications/mod.rs @@ -9,7 +9,7 @@ pub mod ics27_interchain_accounts { /// of the full port identifier, which has a /// complex structure. /// - /// https://github.com/cosmos/ibc/tree/master/spec/app/ics-027-interchain-accounts#registering--controlling-flows + /// pub const PORT_ID_PREFIX: &str = "ics27-1."; /// ICS27 application current version. diff --git a/modules/src/clients/ics07_tendermint/client_state.rs b/modules/src/clients/ics07_tendermint/client_state.rs index 4be2155dd7..4826c98e3f 100644 --- a/modules/src/clients/ics07_tendermint/client_state.rs +++ b/modules/src/clients/ics07_tendermint/client_state.rs @@ -163,7 +163,7 @@ impl ClientState { } /// Helper method to produce a - /// [`tendermint_light_client::light_client::Options`] struct for use in + /// [`Options`] struct for use in /// Tendermint-specific light client verification. pub fn as_light_client_options(&self) -> Result { Ok(Options { diff --git a/modules/src/core/ics23_commitment/merkle.rs b/modules/src/core/ics23_commitment/merkle.rs index aa79f1d1bf..ef882811de 100644 --- a/modules/src/core/ics23_commitment/merkle.rs +++ b/modules/src/core/ics23_commitment/merkle.rs @@ -35,7 +35,7 @@ pub struct MerkleProof { /// Convert to ics23::CommitmentProof /// The encoding and decoding shouldn't fail since ics23::CommitmentProof and ibc_proto::ics23::CommitmentProof should be the same -/// Ref. https://github.com/informalsystems/ibc-rs/issues/853 +/// Ref. impl From for MerkleProof { fn from(proof: RawMerkleProof) -> Self { let proofs: Vec = proof diff --git a/relayer/src/chain.rs b/relayer/src/chain.rs index b5b4ee2724..ec3a87c923 100644 --- a/relayer/src/chain.rs +++ b/relayer/src/chain.rs @@ -1,7 +1,6 @@ use alloc::sync::Arc; use core::convert::TryFrom; -use prost_types::Any; use tendermint::block::Height; use tokio::runtime::Runtime as TokioRuntime; From f869906fb8174cc1c7050a75e03f6c5a16cf6c77 Mon Sep 17 00:00:00 2001 From: Soares Chen Date: Mon, 14 Feb 2022 22:13:27 +0800 Subject: [PATCH 2/6] Fix cargo doc --- .../src/clients/ics07_tendermint/client_state.rs | 2 +- modules/src/timestamp.rs | 2 +- relayer/src/chain/handle/requests.rs | 7 ++++--- relayer/src/chain/tx.rs | 3 ++- relayer/src/config/reload.rs | 6 +++--- relayer/src/link.rs | 2 +- relayer/src/object.rs | 6 +++--- relayer/src/supervisor.rs | 8 ++++---- relayer/src/supervisor/spawn.rs | 4 ++-- relayer/src/util/task.rs | 2 +- relayer/src/worker/cmd.rs | 2 +- relayer/src/worker/map.rs | 14 +++++++------- .../src/framework/binary/channel.rs | 2 +- tools/integration-test/src/framework/overrides.rs | 2 +- tools/integration-test/src/types/binary/chains.rs | 3 ++- 15 files changed, 34 insertions(+), 31 deletions(-) diff --git a/modules/src/clients/ics07_tendermint/client_state.rs b/modules/src/clients/ics07_tendermint/client_state.rs index 84ebfd7942..3650438162 100644 --- a/modules/src/clients/ics07_tendermint/client_state.rs +++ b/modules/src/clients/ics07_tendermint/client_state.rs @@ -151,7 +151,7 @@ impl ClientState { } /// Helper method to produce a - /// [`Options`] struct for use in + /// [`tendermint_light_client_verifier::options::Options`] struct for use in /// Tendermint-specific light client verification. pub fn as_light_client_options(&self) -> Result { Ok(Options { diff --git a/modules/src/timestamp.rs b/modules/src/timestamp.rs index 64097f477d..477afe43fa 100644 --- a/modules/src/timestamp.rs +++ b/modules/src/timestamp.rs @@ -134,7 +134,7 @@ impl Timestamp { self.time.map(Into::into) } - /// Convert a `Timestamp` to an optional [`Tendermint::Time`] + /// Convert a `Timestamp` to an optional [`tendermint::Time`] pub fn into_tm_time(self) -> Option