summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/literal.rs
diff options
context:
space:
mode:
authorWiktor Kwapisiewicz <wiktor@metacode.biz>2020-09-18 10:47:48 +0200
committerWiktor Kwapisiewicz <wiktor@metacode.biz>2020-09-22 09:24:06 +0200
commit6c12cbcf9d1396ec8028ea3f17430e3d20c3c89f (patch)
treef1a586b1d750fca987ff0743493fb712edb53418 /openpgp/src/packet/literal.rs
parent7800ca989a13bf38aaaae63c1d28e005003a67df (diff)
openpgp: Remove `quickcheck` feature.
- Adjust code to test for `cfg(test)` only, - Remove `quickcheck` and `rand` from dependencies so that they stay only in dev-dependencies, - Remove mention of `x-quickcheck` feature from the documentation, - Fixes #545.
Diffstat (limited to 'openpgp/src/packet/literal.rs')
-rw-r--r--openpgp/src/packet/literal.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/packet/literal.rs b/openpgp/src/packet/literal.rs
index 7eb4082b..f9865fbc 100644
--- a/openpgp/src/packet/literal.rs
+++ b/openpgp/src/packet/literal.rs
@@ -3,7 +3,7 @@ use std::cmp;
use std::convert::TryInto;
use std::time;
-#[cfg(any(test, feature = "quickcheck"))]
+#[cfg(test)]
use quickcheck::{Arbitrary, Gen};
use crate::types::{DataFormat, Timestamp};
@@ -174,7 +174,7 @@ impl From<Literal> for Packet {
}
}
-#[cfg(any(test, feature = "quickcheck"))]
+#[cfg(test)]
impl Arbitrary for Literal {
fn arbitrary<G: Gen>(g: &mut G) -> Self {
let mut l = Literal::new(DataFormat::arbitrary(g));