Fix lifetime error

This commit is contained in:
Brendan Zabarauskas 2013-07-01 11:37:58 +10:00
parent 3e1fb3293f
commit b7530c3512

View file

@ -215,7 +215,8 @@ macro_rules! impl_approx(
#[inline] #[inline]
pub fn approx_eq_eps(&self, other: &$Self<T>, epsilon: &T) -> bool { pub fn approx_eq_eps(&self, other: &$Self<T>, epsilon: &T) -> bool {
self.zip(other, |a, b| a.approx_eq_eps(b, epsilon)).iter().all(|&x| x) let tmp = self.zip(other, |a, b| a.approx_eq_eps(b, epsilon));
tmp.iter().all(|&x| x)
} }
} }
) )