traits: inline integer from_str_radix
This commit is contained in:
parent
7a9c39fa87
commit
932e45c207
|
@ -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>
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue