traits: inline integer from_str_radix

This commit is contained in:
Josh Stone 2016-08-10 22:22:53 -07:00
parent 7a9c39fa87
commit 932e45c207
1 changed files with 1 additions and 0 deletions

View File

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