Fix stray clippy complaints.
This commit is contained in:
parent
ef98c7e48c
commit
fa092da456
|
@ -10,6 +10,7 @@ use crate::{
|
|||
/// Trial decryption of a batch of notes with a set of recipients.
|
||||
///
|
||||
/// This is the batched version of [`zcash_note_encryption::try_note_decryption`].
|
||||
#[allow(clippy::type_complexity)]
|
||||
pub fn try_note_decryption<D: Domain, Output: ShieldedOutput<D>>(
|
||||
ivks: &[D::IncomingViewingKey],
|
||||
outputs: &[(D, Output)],
|
||||
|
|
|
@ -106,12 +106,7 @@ fn bench_note_decryption(c: &mut Criterion) {
|
|||
let size = 10;
|
||||
let outputs: Vec<_> = iter::repeat(output)
|
||||
.take(size)
|
||||
.map(|output| {
|
||||
(
|
||||
SaplingDomain::for_height(TEST_NETWORK.clone(), height),
|
||||
output,
|
||||
)
|
||||
})
|
||||
.map(|output| (SaplingDomain::for_height(TEST_NETWORK, height), output))
|
||||
.collect();
|
||||
|
||||
let mut group = c.benchmark_group("sapling-batch-note-decryption");
|
||||
|
@ -127,7 +122,7 @@ fn bench_note_decryption(c: &mut Criterion) {
|
|||
|
||||
let compact: Vec<_> = outputs
|
||||
.into_iter()
|
||||
.map(|(domain, output)| (domain, CompactOutputDescription::from(output.clone())))
|
||||
.map(|(domain, output)| (domain, CompactOutputDescription::from(output)))
|
||||
.collect();
|
||||
|
||||
group.bench_function(BenchmarkId::new("compact-valid", size), |b| {
|
||||
|
|
|
@ -1349,7 +1349,7 @@ mod tests {
|
|||
let output = OutputDescription {
|
||||
cv,
|
||||
cmu,
|
||||
ephemeral_key: ephemeral_key,
|
||||
ephemeral_key,
|
||||
enc_ciphertext: tv.c_enc,
|
||||
out_ciphertext: tv.c_out,
|
||||
zkproof: [0u8; GROTH_PROOF_SIZE],
|
||||
|
|
Loading…
Reference in New Issue