Skip to content

Commit

Permalink
link on doc strings
Browse files Browse the repository at this point in the history
  • Loading branch information
rnbguy committed Apr 26, 2024
1 parent 0f9f1ee commit 6f52da0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ibc-core/ics02-client/context/src/client_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ use ibc_core_host_types::path::Path;
use ibc_primitives::prelude::*;
use ibc_primitives::proto::Any;

/// Convenient trait to decode a client state from an `Any` type and obtain a
/// handle to the local instance of `ClientState`.
/// Convenient trait to decode a client state from an [`Any`] type and obtain a
/// handle to the local instance of [`ClientState`].
pub trait ClientStateDecoder: Into<Any> + TryFrom<Any, Error = ClientError> {}

impl<T> ClientStateDecoder for T where T: Into<Any> + TryFrom<Any, Error = ClientError> {}
Expand Down
4 changes: 2 additions & 2 deletions ibc-core/ics02-client/context/src/consensus_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use ibc_primitives::prelude::*;
use ibc_primitives::proto::Any;
use ibc_primitives::Timestamp;

/// Convenient trait to decode a consensus state from an `Any` type and obtain
/// a handle to the local instance of `ConsensusState`.
/// Convenient trait to decode a consensus state from an [`Any`] type and obtain
/// a handle to the local instance of [`ConsensusState`].
pub trait ConsensusStateDecoder: Into<Any> + TryFrom<Any, Error = ClientError> {}

impl<T> ConsensusStateDecoder for T where T: Into<Any> + TryFrom<Any, Error = ClientError> {}
Expand Down

0 comments on commit 6f52da0

Please sign in to comment.