瀏覽代碼

traits: inline integer from_str_radix

Josh Stone 8 年之前
父節點
當前提交
932e45c207
共有 1 個文件被更改,包括 1 次插入0 次删除
  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>
             {