Skip to content

Commit

Permalink
cargo-clippy formating update
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtrombetta committed Feb 14, 2024
1 parent 6d5ad39 commit e694b88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/pass_bls12_381_g1_generators_to_commitment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fn main() {
/////////////////////////////////////////////
let mut scalar_data: Vec<Fr> = Vec::new();
for d in &data {
scalar_data.push(Fr::try_from(*d).unwrap());
scalar_data.push(Fr::from(*d));
}
let ark_commitment = G1Projective::msm(&generator_points, &scalar_data).unwrap();
let mut compressed_bytes = Vec::new();
Expand Down
2 changes: 1 addition & 1 deletion examples/pass_bn254_g1_generators_to_commitment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fn main() {
/////////////////////////////////////////////
let mut scalar_data: Vec<Fr> = Vec::new();
for d in &data {
scalar_data.push(Fr::try_from(*d).unwrap());
scalar_data.push(Fr::from(*d));
}
let ark_commitment = G1Projective::msm(&generator_points, &scalar_data).unwrap();

Expand Down

0 comments on commit e694b88

Please sign in to comment.