Skip to content

Commit

Permalink
Bring back num_traits
Browse files Browse the repository at this point in the history
  • Loading branch information
autquis committed Oct 25, 2024
1 parent 552163a commit 3f25cc0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions poly-commit/src/linear_codes/data_structures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use ark_crypto_primitives::{
};
use ark_ff::PrimeField;
use ark_serialize::{CanonicalDeserialize, CanonicalSerialize};
#[cfg(not(feature = "std"))]
use ark_std::vec::Vec;
use ark_std::{marker::PhantomData, rand::RngCore};

Expand Down
2 changes: 1 addition & 1 deletion poly-commit/src/linear_codes/multilinear_ligero/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ use ark_crypto_primitives::{
};
use ark_ff::{FftField, PrimeField};
use ark_poly::{MultilinearExtension, Polynomial};
use ark_std::{log2, marker::PhantomData};
#[cfg(not(feature = "std"))]
use ark_std::vec::Vec;
use ark_std::{log2, marker::PhantomData};

mod tests;

Expand Down
2 changes: 2 additions & 0 deletions poly-commit/src/linear_codes/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ use ark_ff::{FftField, PrimeField};
use ark_poly::{EvaluationDomain, GeneralEvaluationDomain};
#[cfg(not(feature = "std"))]
use ark_std::{string::ToString, 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.
Expand Down

0 comments on commit 3f25cc0

Please sign in to comment.