Browse Source

traits: inline integer from_str_radix

Josh Stone 8 years ago
parent
commit
932e45c207
1 changed files with 1 additions and 0 deletions
  1. 1 0
      traits/src/lib.rs

+ 1 - 0
traits/src/lib.rs

@@ -46,6 +46,7 @@ macro_rules! int_trait_impl {
     ($name:ident for $($t:ty)*) => ($(
         impl $name for $t {
             type FromStrRadixErr = ::std::num::ParseIntError;
+            #[inline]
             fn from_str_radix(s: &str, radix: u32)
                               -> Result<Self, ::std::num::ParseIntError>
             {