Skip to content

Commit 3f25cc0

Browse files
committed
Bring back num_traits
1 parent 552163a commit 3f25cc0

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

poly-commit/src/linear_codes/data_structures.rs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use ark_crypto_primitives::{
55
};
66
use ark_ff::PrimeField;
77
use ark_serialize::{CanonicalDeserialize, CanonicalSerialize};
8+
#[cfg(not(feature = "std"))]
89
use ark_std::vec::Vec;
910
use ark_std::{marker::PhantomData, rand::RngCore};
1011

poly-commit/src/linear_codes/multilinear_ligero/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ use ark_crypto_primitives::{
88
};
99
use ark_ff::{FftField, PrimeField};
1010
use ark_poly::{MultilinearExtension, Polynomial};
11-
use ark_std::{log2, marker::PhantomData};
1211
#[cfg(not(feature = "std"))]
1312
use ark_std::vec::Vec;
13+
use ark_std::{log2, marker::PhantomData};
1414

1515
mod tests;
1616

poly-commit/src/linear_codes/utils.rs

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ use ark_ff::{FftField, PrimeField};
44
use ark_poly::{EvaluationDomain, GeneralEvaluationDomain};
55
#[cfg(not(feature = "std"))]
66
use ark_std::{string::ToString, vec::Vec};
7+
#[cfg(not(feature = "std"))]
8+
use num_traits::Float;
79

810
/// Apply reed-solomon encoding to msg.
911
/// Assumes msg.len() is equal to the order of some FFT domain in F.

0 commit comments

Comments
 (0)