Fix a couple of broken doc links.

Extracted from: 5541552453
This commit is contained in:
Kris Nuttycombe 2021-09-01 10:21:05 -06:00
parent b7a3885b7f
commit 943e6f5c20
2 changed files with 8 additions and 2 deletions

View File

@ -9,7 +9,7 @@ use crate::{
/// Trial decryption of a batch of notes with a set of recipients. /// Trial decryption of a batch of notes with a set of recipients.
/// ///
/// This is the batched version of [`zcash_note_encryption::try_note_decryption`]. /// This is the batched version of [`crate::try_note_decryption`].
#[allow(clippy::type_complexity)] #[allow(clippy::type_complexity)]
pub fn try_note_decryption<D: Domain, Output: ShieldedOutput<D>>( pub fn try_note_decryption<D: Domain, Output: ShieldedOutput<D>>(
ivks: &[D::IncomingViewingKey], ivks: &[D::IncomingViewingKey],
@ -20,7 +20,7 @@ pub fn try_note_decryption<D: Domain, Output: ShieldedOutput<D>>(
/// Trial decryption of a batch of notes for light clients with a set of recipients. /// Trial decryption of a batch of notes for light clients with a set of recipients.
/// ///
/// This is the batched version of [`zcash_note_encryption::try_compact_note_decryption`]. /// This is the batched version of [`crate::try_compact_note_decryption`].
pub fn try_compact_note_decryption<D: Domain, Output: ShieldedOutput<D>>( pub fn try_compact_note_decryption<D: Domain, Output: ShieldedOutput<D>>(
ivks: &[D::IncomingViewingKey], ivks: &[D::IncomingViewingKey],
outputs: &[(D, Output)], outputs: &[(D, Output)],

View File

@ -3,6 +3,11 @@
//! functionality that is shared between the Sapling and Orchard //! functionality that is shared between the Sapling and Orchard
//! protocols. //! protocols.
// Catch documentation errors caused by code changes.
#![deny(broken_intra_doc_links)]
#![deny(unsafe_code)]
// TODO: #![deny(missing_docs)]
use std::convert::TryInto; use std::convert::TryInto;
use chacha20::{ use chacha20::{
@ -13,6 +18,7 @@ use chacha20poly1305::{
aead::{AeadInPlace, NewAead}, aead::{AeadInPlace, NewAead},
ChaCha20Poly1305, ChaCha20Poly1305,
}; };
use rand_core::RngCore; use rand_core::RngCore;
use subtle::{Choice, ConstantTimeEq}; use subtle::{Choice, ConstantTimeEq};