Merge pull request #8 from tomaka/fix-group-traits

Fix rustc_serialize feature non-additive
This commit is contained in:
André Silva
2018-07-25 15:11:58 +01:00
committed by GitHub
-23
View File
@@ -201,29 +201,6 @@ impl Fq2 {
}
}
#[cfg(feature = "rustc-serialize")]
pub trait Group
: rustc_serialize::Encodable
+ rustc_serialize::Decodable
+ Send
+ Sync
+ Copy
+ Clone
+ PartialEq
+ Eq
+ Sized
+ Add<Self, Output = Self>
+ Sub<Self, Output = Self>
+ Neg<Output = Self>
+ Mul<Fr, Output = Self> {
fn zero() -> Self;
fn one() -> Self;
fn random<R: Rng>(rng: &mut R) -> Self;
fn is_zero(&self) -> bool;
fn normalize(&mut self);
}
#[cfg(not(feature = "rustc-serialize"))]
pub trait Group
: Send
+ Sync