Fix lifetime error
This commit is contained in:
parent
3e1fb3293f
commit
b7530c3512
1 changed files with 2 additions and 1 deletions
|
@ -215,7 +215,8 @@ macro_rules! impl_approx(
|
|||
|
||||
#[inline]
|
||||
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)
|
||||
}
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue