From 3b44441ce95368694ef5672463d6b070958c78e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Sun, 30 Nov 2014 15:47:31 +0100 Subject: [PATCH] Update to the last rust-nightly. Version of rustc: 0.13.0-nightly (fac5a0767 2014-11-26 22:37:06 +0000). --- src/structs/dmat.rs | 4 ++-- src/structs/dvec_macros.rs | 4 ++-- src/structs/mat_macros.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/structs/dmat.rs b/src/structs/dmat.rs index 146785ce..5cd5517b 100644 --- a/src/structs/dmat.rs +++ b/src/structs/dmat.rs @@ -605,14 +605,14 @@ impl> ApproxEq for DMat { #[inline] fn approx_eq(a: &DMat, b: &DMat) -> 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, b: &DMat, 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)) } diff --git a/src/structs/dvec_macros.rs b/src/structs/dvec_macros.rs index 2f8db2b1..859fb005 100644 --- a/src/structs/dvec_macros.rs +++ b/src/structs/dvec_macros.rs @@ -270,14 +270,14 @@ macro_rules! dvec_impl( #[inline] fn approx_eq(a: &$dvec, b: &$dvec) -> 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, b: &$dvec, 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)) } diff --git a/src/structs/mat_macros.rs b/src/structs/mat_macros.rs index 974b7039..62614b65 100644 --- a/src/structs/mat_macros.rs +++ b/src/structs/mat_macros.rs @@ -626,14 +626,14 @@ macro_rules! approx_eq_impl( #[inline] fn approx_eq(a: &$t, b: &$t) -> 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, b: &$t, 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)) }