Skip to content

Commit

Permalink
fix: Final clippy complains & adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
CPerezz committed Sep 18, 2023
1 parent 2381765 commit 6d9fa79
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion halo2_gadgets/src/utilities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ mod tests {

#[allow(clippy::assign_op_pattern)]
#[allow(clippy::ptr_offset_with_cast)]
#[allow(clippy::single_range_in_vec_init)]
#[test]
fn test_bitrange_subset() {
let rng = OsRng;
Expand Down
2 changes: 1 addition & 1 deletion halo2_proofs/benches/commit_zk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fn rand_poly_serial(mut rng: ChaCha20Rng, domain: usize) -> Vec<Scalar> {

fn rand_poly_par(mut rng: ChaCha20Rng, domain: usize) -> Vec<Scalar> {
// Sample a random polynomial of degree n - 1
let n = 1usize << domain as usize;
let n = 1usize << domain;
let mut random_poly = vec![Scalar::ZERO; n];

let num_threads = current_num_threads();
Expand Down
1 change: 0 additions & 1 deletion halo2_proofs/tests/plonk_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,6 @@ fn plonk_api() {
>(verifier_params, pk.get_vk(), &proof[..]);
}

#[allow(clippy::needless_raw_string_hashes)]
fn test_plonk_api_ipa() {
use halo2_proofs::poly::ipa::commitment::{IPACommitmentScheme, ParamsIPA};
use halo2_proofs::poly::ipa::multiopen::{ProverIPA, VerifierIPA};
Expand Down

0 comments on commit 6d9fa79

Please sign in to comment.