Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Fix latest clippy for redundant_imports (0xPolygonZero#1535)
Browse files Browse the repository at this point in the history
* Fix clippy for maybe_rayon

* Remove reimports
  • Loading branch information
Nashtare authored Feb 19, 2024
1 parent 6c9588a commit 4a620f4
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion field/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#![allow(clippy::needless_range_loop)]
#![feature(specialization)]
#![cfg_attr(not(test), no_std)]

#![cfg(not(test))]
extern crate alloc;

pub(crate) mod arch;
Expand Down
2 changes: 1 addition & 1 deletion maybe_rayon/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use rayon::{
prelude::*,
slice::{
Chunks as ParChunks, ChunksExact as ParChunksExact, ChunksExactMut as ParChunksExactMut,
ChunksMut as ParChunksMut, ParallelSlice, ParallelSliceMut,
ChunksMut as ParChunksMut,
},
};
#[cfg(not(feature = "parallel"))]
Expand Down
2 changes: 1 addition & 1 deletion plonky2/src/gates/coset_interpolation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ mod tests {

use super::*;
use crate::field::goldilocks_field::GoldilocksField;
use crate::field::types::{Field, Sample};
use crate::field::types::Sample;
use crate::gates::gate_testing::{test_eval_fns, test_low_degree};
use crate::hash::hash_types::HashOut;
use crate::plonk::config::{GenericConfig, PoseidonGoldilocksConfig};
Expand Down
2 changes: 0 additions & 2 deletions plonky2/src/hash/merkle_proofs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,13 @@ impl<F: RichField + Extendable<D>, const D: usize> CircuitBuilder<F, D> {

#[cfg(test)]
mod tests {
use anyhow::Result;
use rand::rngs::OsRng;
use rand::Rng;

use super::*;
use crate::field::types::Field;
use crate::hash::merkle_tree::MerkleTree;
use crate::iop::witness::{PartialWitness, WitnessWrite};
use crate::plonk::circuit_builder::CircuitBuilder;
use crate::plonk::circuit_data::CircuitConfig;
use crate::plonk::config::{GenericConfig, PoseidonGoldilocksConfig};
use crate::plonk::verifier::verify;
Expand Down
2 changes: 1 addition & 1 deletion plonky2/src/recursion/conditional_recursive_verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ mod tests {
use crate::gates::noop::NoopGate;
use crate::iop::witness::{PartialWitness, WitnessWrite};
use crate::plonk::circuit_data::CircuitConfig;
use crate::plonk::config::{GenericConfig, PoseidonGoldilocksConfig};
use crate::plonk::config::PoseidonGoldilocksConfig;
use crate::recursion::dummy_circuit::{dummy_circuit, dummy_proof};

#[test]
Expand Down
2 changes: 1 addition & 1 deletion plonky2/src/recursion/recursive_verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ mod tests {
use crate::gates::noop::NoopGate;
use crate::iop::witness::{PartialWitness, WitnessWrite};
use crate::plonk::circuit_data::{CircuitConfig, VerifierOnlyCircuitData};
use crate::plonk::config::{GenericConfig, KeccakGoldilocksConfig, PoseidonGoldilocksConfig};
use crate::plonk::config::{KeccakGoldilocksConfig, PoseidonGoldilocksConfig};
use crate::plonk::proof::{CompressedProofWithPublicInputs, ProofWithPublicInputs};
use crate::plonk::prover::prove;
use crate::util::timing::TimingTree;
Expand Down

0 comments on commit 4a620f4

Please sign in to comment.