Skip to content

Commit

Permalink
Merge pull request #35 from QED-it/fix_clippy_warnings
Browse files Browse the repository at this point in the history
Fix clippy warnings
  • Loading branch information
PaulLaux authored Oct 28, 2024
2 parents 1195c9a + ac686ba commit 90bc565
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions halo2_gadgets/src/sinsemilla/chip/hash_to_point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ use pasta_curves::{arithmetic::CurveAffine, pallas};
use std::ops::Deref;

/// `EccPointQ` can hold either a public or a private ECC Point
/// (this structure is only used in tests)
#[derive(Debug, Clone)]
pub enum EccPointQ<'a> {
#[allow(dead_code)]
PublicPoint(pallas::Affine),
#[allow(dead_code)]
PrivatePoint(&'a NonIdentityEccPoint),
}

Expand Down
2 changes: 1 addition & 1 deletion halo2_gadgets/src/sinsemilla/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ mod tests {

let domain = CommitDomain::new("z.cash:ZSA-NoteCommit");

let mut os_rng = OsRng::default();
let mut os_rng = OsRng;
let msg: Vec<bool> = (0..36).map(|_| os_rng.gen::<bool>()).collect();

let rcm = pallas::Scalar::random(&mut os_rng);
Expand Down

0 comments on commit 90bc565

Please sign in to comment.