Skip to content

Commit

Permalink
Fix unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
autquis committed Jan 10, 2024
1 parent bd89e44 commit e85af90
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 0 additions & 2 deletions poly-commit/src/linear_codes/ligero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ use ark_crypto_primitives::merkle_tree::{Config, LeafParam, TwoToOneParam};
use ark_ff::PrimeField;
use ark_std::log2;
use ark_std::marker::PhantomData;
#[cfg(not(feature = "std"))]
use num_traits::Float;

impl<F, C, H> LigeroPCParams<F, C, H>
where
Expand Down
3 changes: 0 additions & 3 deletions poly-commit/src/linear_codes/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ use ark_poly::{EvaluationDomain, GeneralEvaluationDomain};
use ark_std::string::ToString;
use ark_std::vec::Vec;

#[cfg(not(feature = "std"))]
use num_traits::Float;

/// Apply reed-solomon encoding to msg.
/// Assumes msg.len() is equal to the order of some FFT domain in F.
/// Returns a vector of length equal to the smallest FFT domain of size at least msg.len() * RHO_INV.
Expand Down
9 changes: 3 additions & 6 deletions poly-commit/src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
#[cfg(not(feature = "std"))]
use num_traits::Float;
use ark_ff::Field;
use ark_serialize::{CanonicalDeserialize, CanonicalSerialize};
use ark_std::vec::Vec;

#[cfg(feature = "parallel")]
use rayon::{
iter::{IntoParallelRefIterator, ParallelIterator},
prelude::IndexedParallelIterator,
};

use ark_ff::Field;
use ark_serialize::{CanonicalDeserialize, CanonicalSerialize};
use ark_std::vec::Vec;

/// Takes as input a struct, and converts them to a series of bytes. All traits
/// that implement `CanonicalSerialize` can be automatically converted to bytes
/// in this manner.
Expand Down

0 comments on commit e85af90

Please sign in to comment.