From 0559a868fc978b4ce7773ee08804edb03b15306b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 11 Feb 2024 17:52:44 +0900 Subject: [PATCH] Update quickcheck requirement from 0.6.1 to 1.0.3 (#227) * Update quickcheck requirement from 0.6.1 to 1.0.3 Updates the requirements on [quickcheck](https://github.com/BurntSushi/quickcheck) to permit the latest version. - [Commits](https://github.com/BurntSushi/quickcheck/compare/quickcheck_macros-0.6.1...1.0.3) --- updated-dependencies: - dependency-name: quickcheck dependency-type: direct:production ... Signed-off-by: dependabot[bot] * Fixup wrapper implementations to mach updated trait Signed-off-by: lloydmeta --------- Signed-off-by: dependabot[bot] Signed-off-by: lloydmeta Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Lloyd Co-authored-by: lloydmeta --- laws/Cargo.toml | 2 +- laws/src/wrapper.rs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/laws/Cargo.toml b/laws/Cargo.toml index cfaa73f9c..895913ab8 100644 --- a/laws/Cargo.toml +++ b/laws/Cargo.toml @@ -18,4 +18,4 @@ default-features = false version = "0.4.2" [dependencies] -quickcheck = "0.6.1" +quickcheck = "1.0.3" diff --git a/laws/src/wrapper.rs b/laws/src/wrapper.rs index cf284b959..9a52b2d0b 100644 --- a/laws/src/wrapper.rs +++ b/laws/src/wrapper.rs @@ -14,31 +14,31 @@ use quickcheck::*; pub struct Wrapper(A); impl Arbitrary for Wrapper> { - fn arbitrary(g: &mut G) -> Self { + fn arbitrary(g: &mut Gen) -> Self { Wrapper(Max(Arbitrary::arbitrary(g))) } } impl Arbitrary for Wrapper> { - fn arbitrary(g: &mut G) -> Self { + fn arbitrary(g: &mut Gen) -> Self { Wrapper(Min(Arbitrary::arbitrary(g))) } } impl Arbitrary for Wrapper> { - fn arbitrary(g: &mut G) -> Self { + fn arbitrary(g: &mut Gen) -> Self { Wrapper(All(Arbitrary::arbitrary(g))) } } impl Arbitrary for Wrapper> { - fn arbitrary(g: &mut G) -> Self { + fn arbitrary(g: &mut Gen) -> Self { Wrapper(Any(Arbitrary::arbitrary(g))) } } impl Arbitrary for Wrapper> { - fn arbitrary(g: &mut G) -> Self { + fn arbitrary(g: &mut Gen) -> Self { Wrapper(Product(Arbitrary::arbitrary(g))) } }