Browse Source

traits: inline integer from_str_radix

Josh Stone 8 năm trước cách đây
mục cha
commit
932e45c207
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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>
             {