summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/compressed_data.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/packet/compressed_data.rs')
-rw-r--r--openpgp/src/packet/compressed_data.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/openpgp/src/packet/compressed_data.rs b/openpgp/src/packet/compressed_data.rs
index e86d870f..4f379496 100644
--- a/openpgp/src/packet/compressed_data.rs
+++ b/openpgp/src/packet/compressed_data.rs
@@ -1,4 +1,6 @@
use std::fmt;
+
+#[cfg(any(test, feature = "quickcheck"))]
use quickcheck::{Arbitrary, Gen};
use crate::packet;
@@ -94,6 +96,7 @@ impl From<CompressedData> for Packet {
}
}
+#[cfg(any(test, feature = "quickcheck"))]
impl Arbitrary for CompressedData {
fn arbitrary<G: Gen>(g: &mut G) -> Self {
use rand::Rng;