Fix clippy lints

This commit is contained in:
Jack Grigg 2021-04-29 10:57:53 +12:00
parent 223b7ac533
commit d383ff5054
2 changed files with 4 additions and 8 deletions

View File

@ -190,7 +190,7 @@ impl Builder {
}
// Consistency check: all anchors must be equal.
let cm = note.commitment();
let _cm = note.commitment();
// TODO: Once we have tree logic.
// let path_root: bls12_381::Scalar = merkle_path.root(cmu).into();
// if path_root != anchor {
@ -362,12 +362,8 @@ impl Bundle<Unauthorized> {
&mut rng,
|rng, _, SigningMetadata { dummy_ask, ak }| {
(
if let Some(ask) = dummy_ask {
// We can create signatures for dummy spends immediately.
Some(ask.sign(rng, &sighash))
} else {
None
},
// We can create signatures for dummy spends immediately.
dummy_ask.map(|ask| ask.sign(rng, &sighash)),
ak,
)
},

View File

@ -9,7 +9,7 @@ pub struct MerklePath;
impl MerklePath {
/// Generates a dummy Merkle path for use in dummy spent notes.
pub(crate) fn dummy(rng: &mut impl RngCore) -> Self {
pub(crate) fn dummy(_rng: &mut impl RngCore) -> Self {
// TODO
MerklePath
}