summaryrefslogtreecommitdiffstats
path: root/ipc
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 /ipc
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 'ipc')
-rw-r--r--ipc/src/sexp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/src/sexp.rs b/ipc/src/sexp.rs
index a03b8634..105150bc 100644
--- a/ipc/src/sexp.rs
+++ b/ipc/src/sexp.rs
@@ -299,7 +299,7 @@ impl TryFrom<&mpi::Ciphertext> for Sexp {
}
}
-#[cfg(any(test, feature = "quickcheck"))]
+#[cfg(test)]
impl Arbitrary for Sexp {
fn arbitrary<G: Gen>(g: &mut G) -> Self {
if f32::arbitrary(g) < 0.7 {
@@ -389,7 +389,7 @@ impl Deref for String_ {
}
}
-#[cfg(any(test, feature = "quickcheck"))]
+#[cfg(test)]
impl Arbitrary for String_ {
fn arbitrary<G: Gen>(g: &mut G) -> Self {
if bool::arbitrary(g) {