From 549296d312dc7320c706a08cd9dad3c14815ba02 Mon Sep 17 00:00:00 2001 From: Rano | Ranadeep Date: Tue, 13 Jun 2023 16:02:13 +0200 Subject: [PATCH] Fix cargo doc (#108) * fix typo * check cargo doc --- .github/workflows/rust.yml | 20 ++++++++++++++++++++ src/modules/ibc/impls.rs | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 6d3bf150..87771488 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -71,3 +71,23 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} args: --all-features --all-targets -- -Dwarnings -Drust-2018-idioms + + cargo-doc: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + path: | + ~/.cargo + target + key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-rust- + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - uses: actions-rs/cargo@v1 + with: + command: doc diff --git a/src/modules/ibc/impls.rs b/src/modules/ibc/impls.rs index e9eac44f..aeec0a0d 100644 --- a/src/modules/ibc/impls.rs +++ b/src/modules/ibc/impls.rs @@ -626,7 +626,7 @@ where Ok(ack) } - /// Returns the time when the client state for the given [`ClientId`] was updated with a header for the given [`Height`] + /// Returns the time when the client state for the given [`ClientId`] was updated with a header for the given [`IbcHeight`] fn client_update_time( &self, client_id: &ClientId, @@ -643,7 +643,7 @@ where Ok(processed_timestamp) } - /// Returns the height when the client state for the given [`ClientId`] was updated with a header for the given [`Height`] + /// Returns the height when the client state for the given [`ClientId`] was updated with a header for the given [`IbcHeight`] fn client_update_height( &self, client_id: &ClientId,