summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/user_attribute.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/packet/user_attribute.rs')
-rw-r--r--openpgp/src/packet/user_attribute.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/openpgp/src/packet/user_attribute.rs b/openpgp/src/packet/user_attribute.rs
index 03703c8c..246c1be6 100644
--- a/openpgp/src/packet/user_attribute.rs
+++ b/openpgp/src/packet/user_attribute.rs
@@ -6,9 +6,9 @@
use std::fmt;
-#[cfg(any(test, feature = "quickcheck"))]
+#[cfg(test)]
use quickcheck::{Arbitrary, Gen};
-#[cfg(any(test, feature = "quickcheck"))]
+#[cfg(test)]
use rand::Rng;
use buffered_reader::BufferedReader;
@@ -103,7 +103,7 @@ impl From<UserAttribute> for Packet {
}
}
-#[cfg(any(test, feature = "quickcheck"))]
+#[cfg(test)]
impl Arbitrary for UserAttribute {
fn arbitrary<G: Gen>(g: &mut G) -> Self {
UserAttribute::new(
@@ -192,7 +192,7 @@ pub enum Subpacket {
Unknown(u8, Box<[u8]>),
}
-#[cfg(any(test, feature = "quickcheck"))]
+#[cfg(test)]
impl Arbitrary for Subpacket {
fn arbitrary<G: Gen>(g: &mut G) -> Self {
match g.gen_range(0, 3) {
@@ -225,7 +225,7 @@ pub enum Image {
Unknown(u8, Box<[u8]>),
}
-#[cfg(any(test, feature = "quickcheck"))]
+#[cfg(test)]
impl Arbitrary for Image {
fn arbitrary<G: Gen>(g: &mut G) -> Self {
match g.gen_range(0, 5) {