From 306db6c331ca12f1e51ccb83e2ec97f41e63905c Mon Sep 17 00:00:00 2001 From: Cesar199999 Date: Tue, 9 Apr 2024 11:48:36 +0200 Subject: [PATCH] Fix cargo check issues --- poly-commit/src/kzg10/mod.rs | 1 - poly-commit/src/lib.rs | 1 - poly-commit/src/linear_codes/utils.rs | 5 +---- poly-commit/src/marlin/marlin_pst13_pc/mod.rs | 1 - poly-commit/src/multilinear_pc/mod.rs | 1 - poly-commit/src/streaming_kzg/tests.rs | 1 - 6 files changed, 1 insertion(+), 9 deletions(-) diff --git a/poly-commit/src/kzg10/mod.rs b/poly-commit/src/kzg10/mod.rs index 9a406349..e4cd1d53 100644 --- a/poly-commit/src/kzg10/mod.rs +++ b/poly-commit/src/kzg10/mod.rs @@ -481,7 +481,6 @@ mod tests { use ark_bls12_377::Bls12_377; use ark_bls12_381::Bls12_381; use ark_bls12_381::Fr; - use ark_ec::pairing::Pairing; use ark_poly::univariate::DensePolynomial as DensePoly; use ark_std::test_rng; diff --git a/poly-commit/src/lib.rs b/poly-commit/src/lib.rs index f11bde74..101c9eb8 100644 --- a/poly-commit/src/lib.rs +++ b/poly-commit/src/lib.rs @@ -631,7 +631,6 @@ fn lc_query_set_to_poly_query_set<'a, F: Field, T: Clone + Ord>( pub mod tests { use crate::*; use ark_crypto_primitives::sponge::poseidon::{PoseidonConfig, PoseidonSponge}; - use ark_poly::Polynomial; use ark_std::rand::{ distributions::{Distribution, Uniform}, Rng, SeedableRng, diff --git a/poly-commit/src/linear_codes/utils.rs b/poly-commit/src/linear_codes/utils.rs index c66ed214..a7c2c500 100644 --- a/poly-commit/src/linear_codes/utils.rs +++ b/poly-commit/src/linear_codes/utils.rs @@ -111,10 +111,7 @@ pub(crate) mod tests { use ark_bls12_377::Fq; use ark_bls12_377::Fr; - use ark_poly::{ - domain::general::GeneralEvaluationDomain, univariate::DensePolynomial, DenseUVPolynomial, - Polynomial, - }; + use ark_poly::{univariate::DensePolynomial, DenseUVPolynomial, Polynomial}; use ark_std::test_rng; use rand_chacha::{rand_core::SeedableRng, ChaCha20Rng}; diff --git a/poly-commit/src/marlin/marlin_pst13_pc/mod.rs b/poly-commit/src/marlin/marlin_pst13_pc/mod.rs index 6952f1d6..b1b139dc 100644 --- a/poly-commit/src/marlin/marlin_pst13_pc/mod.rs +++ b/poly-commit/src/marlin/marlin_pst13_pc/mod.rs @@ -711,7 +711,6 @@ mod tests { multivariate::{SparsePolynomial as SparsePoly, SparseTerm}, DenseMVPolynomial, }; - use ark_std::vec::Vec; use rand_chacha::ChaCha20Rng; type MVPoly_381 = SparsePoly<::ScalarField, SparseTerm>; diff --git a/poly-commit/src/multilinear_pc/mod.rs b/poly-commit/src/multilinear_pc/mod.rs index 70562d19..ea1793f8 100644 --- a/poly-commit/src/multilinear_pc/mod.rs +++ b/poly-commit/src/multilinear_pc/mod.rs @@ -245,7 +245,6 @@ mod tests { }; use ark_std::rand::RngCore; use ark_std::test_rng; - use ark_std::vec::Vec; type E = Bls12_381; type Fr = ::ScalarField; diff --git a/poly-commit/src/streaming_kzg/tests.rs b/poly-commit/src/streaming_kzg/tests.rs index bb2aa34e..c399cef7 100644 --- a/poly-commit/src/streaming_kzg/tests.rs +++ b/poly-commit/src/streaming_kzg/tests.rs @@ -1,7 +1,6 @@ use ark_bls12_381::{Bls12_381, Fr}; use ark_poly::univariate::DensePolynomial; use ark_poly::DenseUVPolynomial; -use ark_std::vec::Vec; use ark_std::{UniformRand, Zero}; use crate::streaming_kzg::space::CommitterKeyStream;