summaryrefslogtreecommitdiffstats
path: root/openpgp/src/crypto/mpi.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/crypto/mpi.rs')
-rw-r--r--openpgp/src/crypto/mpi.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/openpgp/src/crypto/mpi.rs b/openpgp/src/crypto/mpi.rs
index 2cddbb05..5088e9f3 100644
--- a/openpgp/src/crypto/mpi.rs
+++ b/openpgp/src/crypto/mpi.rs
@@ -18,9 +18,9 @@
use std::fmt;
use std::cmp::Ordering;
-#[cfg(any(test, feature = "quickcheck"))]
+#[cfg(test)]
use quickcheck::{Arbitrary, Gen};
-#[cfg(any(test, feature = "quickcheck"))]
+#[cfg(test)]
use rand::Rng;
use crate::types::{
@@ -245,7 +245,7 @@ impl Hash for MPI {
}
}
-#[cfg(any(test, feature = "quickcheck"))]
+#[cfg(test)]
impl Arbitrary for MPI {
fn arbitrary<G: Gen>(g: &mut G) -> Self {
loop {
@@ -555,7 +555,7 @@ impl Hash for PublicKey {
}
}
-#[cfg(any(test, feature = "quickcheck"))]
+#[cfg(test)]
impl Arbitrary for PublicKey {
fn arbitrary<G: Gen>(g: &mut G) -> Self {
use self::PublicKey::*;
@@ -822,7 +822,7 @@ impl Hash for SecretKeyMaterial {
}
}
-#[cfg(any(test, feature = "quickcheck"))]
+#[cfg(test)]
impl Arbitrary for SecretKeyMaterial {
fn arbitrary<G: Gen>(g: &mut G) -> Self {
match g.gen_range(0, 6) {
@@ -929,7 +929,7 @@ impl Hash for Ciphertext {
}
}
-#[cfg(any(test, feature = "quickcheck"))]
+#[cfg(test)]
impl Arbitrary for Ciphertext {
fn arbitrary<G: Gen>(g: &mut G) -> Self {
match g.gen_range(0, 3) {
@@ -1023,7 +1023,7 @@ impl Hash for Signature {
}
}
-#[cfg(any(test, feature = "quickcheck"))]
+#[cfg(test)]
impl Arbitrary for Signature {
fn arbitrary<G: Gen>(g: &mut G) -> Self {
match g.gen_range(0, 4) {