diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-07-26 12:28:29 +0200 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-12-13 19:01:14 +0100 |
commit | 321b0cc381f3c44f81cfc4a9cf502be169262d14 (patch) | |
tree | 20c5ee6c7a551872a5037d89331b642e6190f4a8 /ipc | |
parent | a79a35952cb2cf92bd6ba60fa7df057fb2eae1d2 (diff) |
ipc, openpgp: Bump quickcheck to 1.0.3.
- Adapt to the new API:
- Gen is now a struct, not a Trait, and replaces StdThreadGen.
- The rand re-export has been removed. As a consequence, we need
our own function to generate an arbitrary value from a range.
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/Cargo.toml | 2 | ||||
-rw-r--r-- | ipc/src/sexp.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ipc/Cargo.toml b/ipc/Cargo.toml index 265592b8..f409943c 100644 --- a/ipc/Cargo.toml +++ b/ipc/Cargo.toml @@ -48,7 +48,7 @@ lalrpop = ">=0.17" [dev-dependencies] clap = "2.33" -quickcheck = { version = "0.9", default-features = false } +quickcheck = { version = "1", default-features = false } [lib] bench = false diff --git a/ipc/src/sexp.rs b/ipc/src/sexp.rs index a362232b..73a4fd1e 100644 --- a/ipc/src/sexp.rs +++ b/ipc/src/sexp.rs @@ -315,7 +315,7 @@ impl TryFrom<&mpi::Ciphertext> for Sexp { #[cfg(test)] impl Arbitrary for Sexp { - fn arbitrary<G: Gen>(g: &mut G) -> Self { + fn arbitrary(g: &mut Gen) -> Self { if f32::arbitrary(g) < 0.7 { Sexp::String(String_::arbitrary(g)) } else { @@ -417,7 +417,7 @@ impl Deref for String_ { #[cfg(test)] impl Arbitrary for String_ { - fn arbitrary<G: Gen>(g: &mut G) -> Self { + fn arbitrary(g: &mut Gen) -> Self { if bool::arbitrary(g) { Self::new(Vec::arbitrary(g).into_boxed_slice()) } else { |