Fix rustc_serialize feature non-additive

This commit is contained in:
Pierre Krieger
2018-03-26 16:14:33 +02:00
parent 964b48fad5
commit c5e6e77be0
-24
View File
@@ -147,30 +147,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 +