Skip to content

Commit

Permalink
tendermint: fix doc links problems in hash
Browse files Browse the repository at this point in the history
  • Loading branch information
mzabaluev committed Jul 17, 2023
1 parent eee14b5 commit 42b7b9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tendermint/src/hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,15 @@ impl Serialize for Hash {
pub mod allow_empty {
use super::*;

/// Serialize [`Hash`](crate::hash::Hash) into a string.
/// Serialize [`Hash`](enum@crate::hash::Hash) into a string.
pub fn serialize<S>(value: &Hash, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
{
value.to_string().serialize(serializer)
}

/// Deserialize [`Hash`](crate::hash::Hash) from a string, allowing for
/// Deserialize [`Hash`](enum@crate::hash::Hash) from a string, allowing for
/// empty hashes.
pub fn deserialize<'de, D>(deserializer: D) -> Result<Hash, D::Error>
where
Expand Down

0 comments on commit 42b7b9f

Please sign in to comment.