mirror of https://github.com/zcash/halo2.git
Fix clippy lints
This commit is contained in:
parent
223b7ac533
commit
d383ff5054
|
@ -190,7 +190,7 @@ impl Builder {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Consistency check: all anchors must be equal.
|
// Consistency check: all anchors must be equal.
|
||||||
let cm = note.commitment();
|
let _cm = note.commitment();
|
||||||
// TODO: Once we have tree logic.
|
// TODO: Once we have tree logic.
|
||||||
// let path_root: bls12_381::Scalar = merkle_path.root(cmu).into();
|
// let path_root: bls12_381::Scalar = merkle_path.root(cmu).into();
|
||||||
// if path_root != anchor {
|
// if path_root != anchor {
|
||||||
|
@ -362,12 +362,8 @@ impl Bundle<Unauthorized> {
|
||||||
&mut rng,
|
&mut rng,
|
||||||
|rng, _, SigningMetadata { dummy_ask, ak }| {
|
|rng, _, SigningMetadata { dummy_ask, ak }| {
|
||||||
(
|
(
|
||||||
if let Some(ask) = dummy_ask {
|
|
||||||
// We can create signatures for dummy spends immediately.
|
// We can create signatures for dummy spends immediately.
|
||||||
Some(ask.sign(rng, &sighash))
|
dummy_ask.map(|ask| ask.sign(rng, &sighash)),
|
||||||
} else {
|
|
||||||
None
|
|
||||||
},
|
|
||||||
ak,
|
ak,
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|
|
@ -9,7 +9,7 @@ pub struct MerklePath;
|
||||||
|
|
||||||
impl MerklePath {
|
impl MerklePath {
|
||||||
/// Generates a dummy Merkle path for use in dummy spent notes.
|
/// 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
|
// TODO
|
||||||
MerklePath
|
MerklePath
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue