Prechádzať zdrojové kódy

traits: inline Bounded tuple methods

Josh Stone 8 rokov pred
rodič
commit
7a9c39fa87
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 2 0
      traits/src/bounds.rs

+ 2 - 0
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(),)*)
             }