Update to the last rust-nightly.

Version of rustc: 0.13.0-nightly (fac5a0767 2014-11-26 22:37:06 +0000).
This commit is contained in:
Sébastien Crozet 2014-11-30 15:47:31 +01:00
parent 9d5d3f49f9
commit 3b44441ce9
3 changed files with 6 additions and 6 deletions

View File

@ -605,14 +605,14 @@ impl<N: ApproxEq<N>> ApproxEq<N> for DMat<N> {
#[inline]
fn approx_eq(a: &DMat<N>, b: &DMat<N>) -> bool {
let mut zip = a.mij.iter().zip(b.mij.iter());
let zip = a.mij.iter().zip(b.mij.iter());
zip.all(|(a, b)| ApproxEq::approx_eq(a, b))
}
#[inline]
fn approx_eq_eps(a: &DMat<N>, b: &DMat<N>, epsilon: &N) -> bool {
let mut zip = a.mij.iter().zip(b.mij.iter());
let zip = a.mij.iter().zip(b.mij.iter());
zip.all(|(a, b)| ApproxEq::approx_eq_eps(a, b, epsilon))
}

View File

@ -270,14 +270,14 @@ macro_rules! dvec_impl(
#[inline]
fn approx_eq(a: &$dvec<N>, b: &$dvec<N>) -> bool {
let mut zip = a.as_slice().iter().zip(b.as_slice().iter());
let zip = a.as_slice().iter().zip(b.as_slice().iter());
zip.all(|(a, b)| ApproxEq::approx_eq(a, b))
}
#[inline]
fn approx_eq_eps(a: &$dvec<N>, b: &$dvec<N>, epsilon: &N) -> bool {
let mut zip = a.as_slice().iter().zip(b.as_slice().iter());
let zip = a.as_slice().iter().zip(b.as_slice().iter());
zip.all(|(a, b)| ApproxEq::approx_eq_eps(a, b, epsilon))
}

View File

@ -626,14 +626,14 @@ macro_rules! approx_eq_impl(
#[inline]
fn approx_eq(a: &$t<N>, b: &$t<N>) -> bool {
let mut zip = a.iter().zip(b.iter());
let zip = a.iter().zip(b.iter());
zip.all(|(a, b)| ApproxEq::approx_eq(a, b))
}
#[inline]
fn approx_eq_eps(a: &$t<N>, b: &$t<N>, epsilon: &N) -> bool {
let mut zip = a.iter().zip(b.iter());
let zip = a.iter().zip(b.iter());
zip.all(|(a, b)| ApproxEq::approx_eq_eps(a, b, epsilon))
}