Explorar o código

traits: inline integer from_str_radix

Josh Stone %!s(int64=8) %!d(string=hai) anos
pai
achega
932e45c207
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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>
             {