From fa451ac00c372ac8ca55265735406f4f49ec4bbd Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 10 Aug 2016 22:21:53 -0700 Subject: [PATCH] traits: inline Saturating methods --- traits/src/ops/saturating.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/traits/src/ops/saturating.rs b/traits/src/ops/saturating.rs index 15f06b7..e9db749 100644 --- a/traits/src/ops/saturating.rs +++ b/traits/src/ops/saturating.rs @@ -12,10 +12,12 @@ pub trait Saturating { macro_rules! saturating_impl { ($trait_name:ident for $($t:ty)*) => {$( impl $trait_name for $t { + #[inline] fn saturating_add(self, v: Self) -> Self { Self::saturating_add(self, v) } + #[inline] fn saturating_sub(self, v: Self) -> Self { Self::saturating_sub(self, v) }