Fix missing trait bounds when the "arbitrary" feature is enabled.
This commit is contained in:
parent
5a058f0c76
commit
91c4b58bbb
|
@ -753,7 +753,7 @@ macro_rules! dmat_impl(
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature="arbitrary")]
|
#[cfg(feature="arbitrary")]
|
||||||
impl<N: Arbitrary> Arbitrary for $dmat<N> {
|
impl<N: Copy + Zero + Arbitrary> Arbitrary for $dmat<N> {
|
||||||
fn arbitrary<G: Gen>(g: &mut G) -> $dmat<N> {
|
fn arbitrary<G: Gen>(g: &mut G) -> $dmat<N> {
|
||||||
$dmat::from_fn(
|
$dmat::from_fn(
|
||||||
Arbitrary::arbitrary(g), Arbitrary::arbitrary(g),
|
Arbitrary::arbitrary(g), Arbitrary::arbitrary(g),
|
||||||
|
|
Loading…
Reference in New Issue