Skip to content

Commit

Permalink
fix: happy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
iajoiner committed Sep 25, 2024
1 parent c804000 commit 9d25ec3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub fn test_simple_commitment_evaluation_proof<CP: CommitmentEvaluationProof>(
);

let commits = Vec::from_columns_with_offset(
&[Column::Scalar(&[
[Column::Scalar(&[
CP::Scalar::one(),
CP::Scalar::one() + CP::Scalar::one(),
])],
Expand Down Expand Up @@ -50,7 +50,7 @@ pub fn test_commitment_evaluation_proof_with_length_1<CP: CommitmentEvaluationPr
let mut transcript = Transcript::new(b"evaluation_proof");
let proof = CP::new(&mut transcript, &[r], &[], 0, prover_setup);

let commits = Vec::from_columns_with_offset(&[Column::Scalar(&[r])], 0, prover_setup);
let commits = Vec::from_columns_with_offset([Column::Scalar(&[r])], 0, prover_setup);

let mut transcript = Transcript::new(b"evaluation_proof");
let r = proof.verify_proof(&mut transcript, &commits[0], &r, &[], 0, 1, verifier_setup);
Expand Down Expand Up @@ -78,7 +78,7 @@ pub fn test_random_commitment_evaluation_proof<CP: CommitmentEvaluationProof>(
let mut transcript = Transcript::new(b"evaluation_proof");
let proof = CP::new(&mut transcript, &a, &b_point, offset as u64, prover_setup);

let commits = Vec::from_columns_with_offset(&[Column::Scalar(&a)], offset, prover_setup);
let commits = Vec::from_columns_with_offset([Column::Scalar(&a)], offset, prover_setup);

let mut b = vec![CP::Scalar::zero(); a.len()];
crate::base::polynomial::compute_evaluation_vector(&mut b, &b_point);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ mod tests {
fn we_can_convert_from_columns() {
// empty case
let commitments = Vec::<RistrettoPoint>::from_columns_with_offset(
&Vec::<Column<Curve25519Scalar>>::new(),
Vec::<Column<Curve25519Scalar>>::new(),
0,
&(),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ mod tests {

// empty case
let commitments = Vec::<DoryCommitment>::from_columns_with_offset(
&Vec::<Column<DoryScalar>>::new(),
Vec::<Column<DoryScalar>>::new(),
0,
&setup,
);
Expand Down

0 comments on commit 9d25ec3

Please sign in to comment.