From 7a9c39fa87d0a73737aa3232ce36ee3dae3da705 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 10 Aug 2016 22:22:15 -0700 Subject: [PATCH] traits: inline Bounded tuple methods --- traits/src/bounds.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/traits/src/bounds.rs b/traits/src/bounds.rs index 9f527d7..966296c 100644 --- a/traits/src/bounds.rs +++ b/traits/src/bounds.rs @@ -55,9 +55,11 @@ macro_rules! for_each_tuple { macro_rules! bounded_tuple { ( $($name:ident)* ) => ( impl<$($name: Bounded,)*> Bounded for ($($name,)*) { + #[inline] fn min_value() -> Self { ($($name::min_value(),)*) } + #[inline] fn max_value() -> Self { ($($name::max_value(),)*) }