From 6c12cbcf9d1396ec8028ea3f17430e3d20c3c89f Mon Sep 17 00:00:00 2001 From: Wiktor Kwapisiewicz Date: Fri, 18 Sep 2020 10:47:48 +0200 Subject: 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. --- openpgp/src/types/timestamp.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'openpgp/src/types/timestamp.rs') diff --git a/openpgp/src/types/timestamp.rs b/openpgp/src/types/timestamp.rs index 8114df53..33518df7 100644 --- a/openpgp/src/types/timestamp.rs +++ b/openpgp/src/types/timestamp.rs @@ -4,7 +4,7 @@ use std::fmt; use std::time::{SystemTime, Duration as SystemDuration, UNIX_EPOCH}; use std::u32; -#[cfg(any(test, feature = "quickcheck"))] +#[cfg(test)] use quickcheck::{Arbitrary, Gen}; use crate::{ @@ -244,7 +244,7 @@ impl Timestamp { } } -#[cfg(any(test, feature = "quickcheck"))] +#[cfg(test)] impl Arbitrary for Timestamp { fn arbitrary(g: &mut G) -> Self { Timestamp(u32::arbitrary(g)) @@ -565,7 +565,7 @@ impl Timestamp { pub(crate) const Y2106 : Timestamp = Timestamp(4291747200); } -#[cfg(any(test, feature = "quickcheck"))] +#[cfg(test)] impl Arbitrary for Duration { fn arbitrary(g: &mut G) -> Self { Duration(u32::arbitrary(g)) -- cgit v1.2.3