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 /openpgp/src/packet/pkesk.rs | |
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 'openpgp/src/packet/pkesk.rs')
-rw-r--r-- | openpgp/src/packet/pkesk.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openpgp/src/packet/pkesk.rs b/openpgp/src/packet/pkesk.rs index 8b914194..5ea6ff66 100644 --- a/openpgp/src/packet/pkesk.rs +++ b/openpgp/src/packet/pkesk.rs @@ -5,7 +5,7 @@ //! //! [Section 5.1 of RFC 4880]: https://tools.ietf.org/html/rfc4880#section-5.1 -#[cfg(any(test, feature = "quickcheck"))] +#[cfg(test)] use quickcheck::{Arbitrary, Gen}; use crate::Error; @@ -190,14 +190,14 @@ impl From<PKESK3> for Packet { } } -#[cfg(any(test, feature = "quickcheck"))] +#[cfg(test)] impl Arbitrary for super::PKESK { fn arbitrary<G: Gen>(g: &mut G) -> Self { PKESK3::arbitrary(g).into() } } -#[cfg(any(test, feature = "quickcheck"))] +#[cfg(test)] impl Arbitrary for PKESK3 { fn arbitrary<G: Gen>(g: &mut G) -> Self { let (ciphertext, pk_algo) = loop { |