Skip to content

Commit

Permalink
Fix clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtiomTr committed Sep 30, 2023
1 parent 1d4b099 commit fb1533d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions blst/tests/eip_4844.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,6 @@ mod tests {
#[test]
pub fn blob_to_kzg_commitment_invalid_blob() {
set_current_dir(env!("CARGO_MANIFEST_DIR")).unwrap();
println!("{}", env!("CARGO_MANIFEST_DIR"));
println!("{}", format!("../kzg-bench/{}", TRUSTED_SETUP_PATH));
let settings =
load_trusted_setup_filename_rust(&format!("../kzg-bench/{}", TRUSTED_SETUP_PATH))
.unwrap();
Expand Down
6 changes: 3 additions & 3 deletions kzg-bench/src/benches/eip_4844.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ pub fn bench_eip_4844<
>(
c: &mut Criterion,
load_trusted_setup: &dyn Fn(&str) -> TKZGSettings,
blob_to_kzg_commitment: &dyn Fn(&[TFr], &TKZGSettings) -> TG1,
blob_to_kzg_commitment: &dyn Fn(&[TFr], &TKZGSettings) -> Result<TG1, String>,
bytes_to_blob: &dyn Fn(&[u8]) -> Result<Vec<TFr>, String>,
compute_kzg_proof: &dyn Fn(&[TFr], &TFr, &TKZGSettings) -> (TG1, TFr),
compute_kzg_proof: &dyn Fn(&[TFr], &TFr, &TKZGSettings) -> Result<(TG1, TFr), String>,
verify_kzg_proof: &dyn Fn(&TG1, &TFr, &TFr, &TG1, &TKZGSettings) -> Result<bool, String>,
compute_blob_kzg_proof: &dyn Fn(&[TFr], &TG1, &TKZGSettings) -> Result<TG1, String>,
verify_blob_kzg_proof: &dyn Fn(&[TFr], &TG1, &TG1, &TKZGSettings) -> Result<bool, String>,
Expand All @@ -45,7 +45,7 @@ pub fn bench_eip_4844<

let commitments: Vec<TG1> = blobs
.iter()
.map(|blob| blob_to_kzg_commitment(blob, &ts))
.map(|blob| blob_to_kzg_commitment(blob, &ts).unwrap())
.collect();

let proofs: Vec<TG1> = blobs
Expand Down

0 comments on commit fb1533d

Please sign in to comment.