Skip to content

Commit fdb1e5a

Browse files
committed
Fix outstanding compiler errors
1 parent b43614f commit fdb1e5a

File tree

8 files changed

+13
-16
lines changed

8 files changed

+13
-16
lines changed

ec/src/scalar_mul/glv.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
use crate::AdditiveGroup;
21
use crate::{
32
short_weierstrass::{Affine, Projective, SWCurveConfig},
4-
CurveGroup,
3+
AdditiveGroup, CurveGroup,
54
};
65
use ark_ff::{PrimeField, Zero};
76
use num_bigint::{BigInt, BigUint, Sign};

ec/src/scalar_mul/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ pub mod wnaf;
44
pub mod fixed_base;
55
pub mod variable_base;
66

7-
use crate::short_weierstrass::{Affine, Projective, SWCurveConfig};
8-
use crate::PrimeGroup;
7+
use crate::{
8+
short_weierstrass::{Affine, Projective, SWCurveConfig},
9+
PrimeGroup,
10+
};
911
use ark_ff::{AdditiveGroup, Zero};
1012
use ark_std::{
1113
ops::{Add, AddAssign, Mul, Neg, Sub, SubAssign},

ff-macros/src/montgomery/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ pub fn mont_config_helper(
103103
let scope_name = format_ident!("{}___", config_name.to_string().to_lowercase());
104104
quote::quote! {
105105
fn #scope_name() {
106-
use ark_ff::{fields::Fp, BigInt, BigInteger, biginteger::arithmetic as fa, fields::*};
106+
use ark_ff::{AdditiveGroup, fields::Fp, BigInt, BigInteger, biginteger::arithmetic as fa, fields::*};
107107
type B = BigInt<#limbs>;
108108
type F = Fp<MontBackend<#config_name, #limbs>, #limbs>;
109109

ff/src/fields/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use ark_serialize::{
99
use ark_std::{
1010
fmt::{Debug, Display},
1111
hash::Hash,
12-
ops::{Add, AddAssign, Div, DivAssign, Mul, MulAssign, Neg, Sub, SubAssign},
12+
ops::{AddAssign, Div, DivAssign, MulAssign, Neg, SubAssign},
1313
vec::Vec,
1414
};
1515

@@ -414,7 +414,7 @@ mod no_std_tests {
414414
let felt2 = Fr::one() + Fr::one();
415415
let felt16 = felt2 * felt2 * felt2 * felt2;
416416

417-
assert_eq!(Fr::from(1u8), Fr::one());
417+
assert_eq!(Fr::from(1u8), Fr::one());
418418
assert_eq!(Fr::from(1u16), Fr::one());
419419
assert_eq!(Fr::from(1u32), Fr::one());
420420
assert_eq!(Fr::from(1u64), Fr::one());

ff/src/fields/models/fp/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ use ark_std::{
1919
mod montgomery_backend;
2020
pub use montgomery_backend::*;
2121

22-
use crate::{
23-
BigInt, BigInteger, FftField, Field, LegendreSymbol, PrimeField,
24-
SqrtPrecomputation,
25-
};
22+
use crate::{BigInt, BigInteger, FftField, Field, LegendreSymbol, PrimeField, SqrtPrecomputation};
2623
/// A trait that specifies the configuration of a prime field.
2724
/// Also specifies how to perform arithmetic on field elements.
2825
pub trait FpConfig<const N: usize>: Send + Sync + 'static + Sized {

ff/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ pub use bits::*;
3232

3333
pub(crate) mod const_helpers;
3434

35+
pub use ark_group::AdditiveGroup;
3536
pub use ark_std::UniformRand;
3637

3738
mod to_field_vec;

test-curves/src/bls12_381/fq2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::bls12_381::*;
2-
use ark_ff::{fields::*, MontFp};
2+
use ark_ff::{fields::*, AdditiveGroup, MontFp};
33

44
pub type Fq2 = Fp2<Fq2Config>;
55

test-curves/src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
#![no_std]
22

3-
pub use ark_ff;
4-
pub use ark_ff::{fields::models::*, FftField, Field, LegendreSymbol, MontFp, PrimeField};
3+
pub use ark_ff::{self, fields::models::*, FftField, Field, LegendreSymbol, MontFp, PrimeField};
54

6-
pub use ark_ec;
7-
pub use ark_ec::*;
5+
pub use ark_ec::{self, *};
86

97
#[cfg(any(feature = "bls12_381_scalar_field", feature = "bls12_381_curve"))]
108
pub mod bls12_381;

0 commit comments

Comments
 (0)