diff --git a/src/traits/operations.rs b/src/traits/operations.rs index d4cfc25f..015ff4be 100644 --- a/src/traits/operations.rs +++ b/src/traits/operations.rs @@ -9,6 +9,7 @@ pub trait ApproxEq { fn approx_eq_eps(a: &Self, other: &Self, epsilon: &Eps) -> bool; /// Tests approximate equality. + #[inline] fn approx_eq(a: &Self, b: &Self) -> bool { ApproxEq::approx_eq_eps(a, b, &ApproxEq::approx_epsilon(None::)) }