diff options
Diffstat (limited to 'openpgp/src/fingerprint.rs')
-rw-r--r-- | openpgp/src/fingerprint.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openpgp/src/fingerprint.rs b/openpgp/src/fingerprint.rs index 6094229f..a88dafdd 100644 --- a/openpgp/src/fingerprint.rs +++ b/openpgp/src/fingerprint.rs @@ -1,4 +1,6 @@ use std::fmt; + +#[cfg(any(test, feature = "quickcheck"))] use quickcheck::{Arbitrary, Gen}; /// A long identifier for certificates and keys. @@ -206,6 +208,7 @@ impl Fingerprint { } } +#[cfg(any(test, feature = "quickcheck"))] impl Arbitrary for Fingerprint { fn arbitrary<G: Gen>(g: &mut G) -> Self { use rand::Rng; |