Skip to content

Commit

Permalink
chore: fmt + clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
guorong009 committed Jul 5, 2024
1 parent 4f68012 commit 735f164
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 22 deletions.
11 changes: 4 additions & 7 deletions halo2_proofs/benches/plonk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ use halo2curves::pasta::{EqAffine, Fp};
use rand_core::OsRng;

use halo2_proofs::{
poly::{
ipa::{
commitment::{IPACommitmentScheme, ParamsIPA},
multiopen::ProverIPA,
strategy::SingleStrategy,
},
VerificationStrategy,
poly::ipa::{
commitment::{IPACommitmentScheme, ParamsIPA},
multiopen::ProverIPA,
strategy::SingleStrategy,
},
transcript::{TranscriptReadBuffer, TranscriptWriterBuffer},
};
Expand Down
12 changes: 7 additions & 5 deletions halo2_proofs/tests/compress_selectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,12 +376,14 @@ fn test_mycircuit(
let mut verifier_transcript =
Blake2bRead::<_, G1Affine, Challenge255<_>>::init(proof.as_slice());
if !verify_proof::<KZGCommitmentScheme<Bn256>, VerifierSHPLONK<Bn256>, _, _, SingleStrategy<_>>(
&verifier_params,
&vk,
instances.as_slice(),
&mut verifier_transcript,
&verifier_params,
&vk,
instances.as_slice(),
&mut verifier_transcript,
) {
return Err(halo2_proofs::plonk::Error::Backend(halo2_backend::plonk::Error::Opening));
return Err(halo2_proofs::plonk::Error::Backend(
halo2_backend::plonk::Error::Opening,
));
};

Ok(proof)
Expand Down
1 change: 0 additions & 1 deletion halo2_proofs/tests/shuffle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ use halo2_proofs::{
multiopen::{ProverIPA, VerifierIPA},
strategy::AccumulatorStrategy,
},
VerificationStrategy,
},
transcript::{
Blake2bRead, Blake2bWrite, Challenge255, TranscriptReadBuffer, TranscriptWriterBuffer,
Expand Down
13 changes: 5 additions & 8 deletions halo2_proofs/tests/shuffle_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@ use halo2_proofs::{
create_proof, keygen_pk, keygen_vk, verify_proof, Advice, Circuit, Column,
ConstraintSystem, ErrorFront, Fixed, Selector,
},
poly::Rotation,
poly::{
ipa::{
commitment::{IPACommitmentScheme, ParamsIPA},
multiopen::{ProverIPA, VerifierIPA},
strategy::AccumulatorStrategy,
},
VerificationStrategy,
poly::ipa::{
commitment::{IPACommitmentScheme, ParamsIPA},
multiopen::{ProverIPA, VerifierIPA},
strategy::AccumulatorStrategy,
},
poly::Rotation,
transcript::{
Blake2bRead, Blake2bWrite, Challenge255, TranscriptReadBuffer, TranscriptWriterBuffer,
},
Expand Down
2 changes: 1 addition & 1 deletion halo2_proofs/tests/vector-ops-unblinded.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use halo2_proofs::{
multiopen::{ProverIPA, VerifierIPA},
strategy::AccumulatorStrategy,
},
Rotation, VerificationStrategy,
Rotation,
},
transcript::{
Blake2bRead, Blake2bWrite, Challenge255, TranscriptReadBuffer, TranscriptWriterBuffer,
Expand Down

0 comments on commit 735f164

Please sign in to comment.