From bd88d9e93fbcb9405507fb75d037dbaeca35e20a Mon Sep 17 00:00:00 2001 From: Victor Koenders Date: Fri, 8 Jun 2018 14:35:12 +0200 Subject: [PATCH] Fixed a compiler issue with the 'simd' feature --- src/vector.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vector.rs b/src/vector.rs index d27cb81..9acc7b3 100644 --- a/src/vector.rs +++ b/src/vector.rs @@ -502,9 +502,11 @@ macro_rules! impl_vector_default { } } - impl Rand for $VectorN { + impl Distribution<$VectorN> for Standard + where S: BaseFloat, + Standard: Distribution { #[inline] - fn rand(rng: &mut R) -> $VectorN { + fn sample(&self, rng: &mut R) -> $VectorN { $VectorN { $($field: rng.gen()),+ } } }