diff options
author | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2020-09-18 10:47:48 +0200 |
---|---|---|
committer | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2020-09-22 09:24:06 +0200 |
commit | 6c12cbcf9d1396ec8028ea3f17430e3d20c3c89f (patch) | |
tree | f1a586b1d750fca987ff0743493fb712edb53418 /ipc | |
parent | 7800ca989a13bf38aaaae63c1d28e005003a67df (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.rs | 4 |
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) { |