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)) }