From e24ecea1dad1dc4b6b05b4ecba5566d30ea89f72 Mon Sep 17 00:00:00 2001 From: Greg Guthe <226605+g-k@users.noreply.github.com> Date: Sat, 22 Jan 2022 13:21:52 -0500 Subject: [PATCH] factor: tests: update Arbitrary impl for Factors Upstream removed the Gen trait and made the gen method private in https://github.com/BurntSushi/quickcheck/commit/d286e4db208535692dd5fb6a580077e5ecbb747b --- src/uu/factor/src/factor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uu/factor/src/factor.rs b/src/uu/factor/src/factor.rs index e32b36db6..d5dbf2491 100644 --- a/src/uu/factor/src/factor.rs +++ b/src/uu/factor/src/factor.rs @@ -277,8 +277,8 @@ impl Distribution for Standard { #[cfg(test)] impl quickcheck::Arbitrary for Factors { - fn arbitrary(g: &mut G) -> Self { - g.gen() + fn arbitrary(g: &mut quickcheck::Gen) -> Self { + factor(u64::arbitrary(g)) } }