Skip to content

Commit

Permalink
Update quickcheck requirement from 0.6.1 to 1.0.3 (#227)
Browse files Browse the repository at this point in the history
* 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](BurntSushi/quickcheck@quickcheck_macros-0.6.1...1.0.3)

---
updated-dependencies:
- dependency-name: quickcheck
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fixup wrapper implementations to mach updated trait

Signed-off-by: lloydmeta <lloydmeta@gmail.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: lloydmeta <lloydmeta@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lloyd <lloydmeta@users.noreply.github.com>
Co-authored-by: lloydmeta <lloydmeta@gmail.com>
  • Loading branch information
3 people authored Feb 11, 2024
1 parent 1d8fbc2 commit 0559a86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion laws/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ default-features = false
version = "0.4.2"

[dependencies]
quickcheck = "0.6.1"
quickcheck = "1.0.3"
10 changes: 5 additions & 5 deletions laws/src/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,31 @@ use quickcheck::*;
pub struct Wrapper<A>(A);

impl<A: Arbitrary + Ord + Clone> Arbitrary for Wrapper<Max<A>> {
fn arbitrary<G: Gen>(g: &mut G) -> Self {
fn arbitrary(g: &mut Gen) -> Self {
Wrapper(Max(Arbitrary::arbitrary(g)))
}
}

impl<A: Arbitrary + Ord + Clone> Arbitrary for Wrapper<Min<A>> {
fn arbitrary<G: Gen>(g: &mut G) -> Self {
fn arbitrary(g: &mut Gen) -> Self {
Wrapper(Min(Arbitrary::arbitrary(g)))
}
}

impl<A: Arbitrary> Arbitrary for Wrapper<All<A>> {
fn arbitrary<G: Gen>(g: &mut G) -> Self {
fn arbitrary(g: &mut Gen) -> Self {
Wrapper(All(Arbitrary::arbitrary(g)))
}
}

impl<A: Arbitrary> Arbitrary for Wrapper<Any<A>> {
fn arbitrary<G: Gen>(g: &mut G) -> Self {
fn arbitrary(g: &mut Gen) -> Self {
Wrapper(Any(Arbitrary::arbitrary(g)))
}
}

impl<A: Arbitrary> Arbitrary for Wrapper<Product<A>> {
fn arbitrary<G: Gen>(g: &mut G) -> Self {
fn arbitrary(g: &mut Gen) -> Self {
Wrapper(Product(Arbitrary::arbitrary(g)))
}
}
Expand Down

0 comments on commit 0559a86

Please sign in to comment.