Update to latest Rust

This commit is contained in:
Eduard Bopp 2014-12-10 15:09:38 +01:00
parent 4abbe6803e
commit 223dc316ad

View File

@ -234,7 +234,7 @@ impl<N: Cast<f64> + Clone> UniformSphereSample for Vec2<N> {
#[inline(always)] #[inline(always)]
fn sample(f: |Vec2<N>| -> ()) { fn sample(f: |Vec2<N>| -> ()) {
for sample in SAMPLES_2_F64.iter() { for sample in SAMPLES_2_F64.iter() {
f(Cast::from(*sample)) f(Cast::from(sample.clone()))
} }
} }
} }
@ -243,7 +243,7 @@ impl<N: Cast<f64> + Clone> UniformSphereSample for Vec3<N> {
#[inline(always)] #[inline(always)]
fn sample(f: |Vec3<N>| -> ()) { fn sample(f: |Vec3<N>| -> ()) {
for sample in SAMPLES_3_F64.iter() { for sample in SAMPLES_3_F64.iter() {
f(Cast::from(*sample)) f(Cast::from(sample.clone()))
} }
} }
} }