1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

factor: tests: update Arbitrary impl for Factors

Upstream removed the Gen trait and made the gen method private in
d286e4db20
This commit is contained in:
Greg Guthe 2022-01-22 13:21:52 -05:00
parent c037382df7
commit e24ecea1da

View file

@ -277,8 +277,8 @@ impl Distribution<Factors> for Standard {
#[cfg(test)]
impl quickcheck::Arbitrary for Factors {
fn arbitrary<G: quickcheck::Gen>(g: &mut G) -> Self {
g.gen()
fn arbitrary(g: &mut quickcheck::Gen) -> Self {
factor(u64::arbitrary(g))
}
}