diff --git a/src/macros/assert.rs b/src/macros/assert.rs index b813a165..de93983b 100644 --- a/src/macros/assert.rs +++ b/src/macros/assert.rs @@ -18,11 +18,11 @@ macro_rules! assert_approx_eq_eps( #[macro_export] macro_rules! assert_approx_eq_ulps( ($given: expr, $expected: expr, $ulps: expr) => ({ - let ulps = &($ulps); + let ulps = $ulps; let (given_val, expected_val) = (&($given), &($expected)); if !ApproxEq::approx_eq_ulps(given_val, expected_val, ulps) { panic!("assertion failed: `left ≈ right` (left: `{}`, right: `{}`, tolerance: `{}`)", - *given_val, *expected_val, *ulps + *given_val, *expected_val, ulps ) } })