From 1672e9e5d20a1d927c5c2d87d793372baa523f59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Thu, 9 Jan 2014 20:53:01 +0100 Subject: [PATCH] Inline the default implementation of approx_eq --- src/traits/operations.rs | 1 + 1 file changed, 1 insertion(+) 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::)) }