From 3ca4597c2cf5cfa772567f78e84e639d69317041 Mon Sep 17 00:00:00 2001 From: Alfredo Garcia Date: Mon, 28 Aug 2023 17:11:23 -0300 Subject: [PATCH] fix redundant doc links (#7402) --- zebra-state/src/service/non_finalized_state/chain.rs | 4 ++-- zebra-state/src/service/read/tree.rs | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/zebra-state/src/service/non_finalized_state/chain.rs b/zebra-state/src/service/non_finalized_state/chain.rs index 16b2b0e7..dbe87888 100644 --- a/zebra-state/src/service/non_finalized_state/chain.rs +++ b/zebra-state/src/service/non_finalized_state/chain.rs @@ -693,7 +693,7 @@ impl Chain { .cloned() } - /// Returns the Sapling [`NoteCommitmentSubtree`](sapling::tree::NoteCommitmentSubtree) specified + /// Returns the Sapling [`NoteCommitmentSubtree`] specified /// by a [`HashOrHeight`], if it exists in the non-finalized [`Chain`]. pub fn sapling_subtree_by_index( &self, @@ -854,7 +854,7 @@ impl Chain { .map(|(_height, tree)| tree.clone()) } - /// Returns the Orchard [`NoteCommitmentSubtree`](orchard::tree::NoteCommitmentSubtree) specified + /// Returns the Orchard [`NoteCommitmentSubtree`] specified /// by a [`HashOrHeight`], if it exists in the non-finalized [`Chain`]. pub fn orchard_subtree( &self, diff --git a/zebra-state/src/service/read/tree.rs b/zebra-state/src/service/read/tree.rs index f248acde..6ea1287c 100644 --- a/zebra-state/src/service/read/tree.rs +++ b/zebra-state/src/service/read/tree.rs @@ -45,7 +45,7 @@ where } /// Returns the Sapling -/// [`NoteCommitmentSubtree`](NoteCommitmentSubtree) specified by an +/// [`NoteCommitmentSubtree`] specified by an /// index, if it exists in the non-finalized `chain` or finalized `db`. #[allow(unused)] pub fn sapling_subtree( @@ -87,8 +87,7 @@ where .or_else(|| db.orchard_tree_by_hash_or_height(hash_or_height)) } -/// Returns the Orchard -/// [`NoteCommitmentSubtree`](NoteCommitmentSubtree) specified by an +/// Returns the Orchard [`NoteCommitmentSubtree`] specified by an /// index, if it exists in the non-finalized `chain` or finalized `db`. #[allow(unused)] pub fn orchard_subtree(