fix(macros.rs): fix use statements for trait impls

This commit is contained in:
Kevin K 2015-04-18 22:23:18 -04:00
parent e7f77353b9
commit 86e4075eb1

View file

@ -244,7 +244,7 @@ macro_rules! simple_enum {
$($v),+ $($v),+
} }
impl std::str::FromStr for $e { impl ::std::str::FromStr for $e {
type Err = String; type Err = String;
fn from_str(s: &str) -> Result<Self,Self::Err> { fn from_str(s: &str) -> Result<Self,Self::Err> {
@ -300,7 +300,7 @@ macro_rules! arg_enum {
$($v),+ $($v),+
} }
impl std::str::FromStr for $e { impl ::std::str::FromStr for $e {
type Err = String; type Err = String;
fn from_str(s: &str) -> Result<Self,Self::Err> { fn from_str(s: &str) -> Result<Self,Self::Err> {
@ -321,7 +321,7 @@ macro_rules! arg_enum {
$($v),+ $($v),+
} }
impl std::str::FromStr for $e { impl ::std::str::FromStr for $e {
type Err = String; type Err = String;
fn from_str(s: &str) -> Result<Self,Self::Err> { fn from_str(s: &str) -> Result<Self,Self::Err> {
@ -343,7 +343,7 @@ macro_rules! arg_enum {
$($v),+ $($v),+
} }
impl std::str::FromStr for $e { impl ::std::str::FromStr for $e {
type Err = String; type Err = String;
fn from_str(s: &str) -> Result<Self,Self::Err> { fn from_str(s: &str) -> Result<Self,Self::Err> {
@ -365,7 +365,7 @@ macro_rules! arg_enum {
$($v),+ $($v),+
} }
impl std::str::FromStr for $e { impl ::std::str::FromStr for $e {
type Err = String; type Err = String;
fn from_str(s: &str) -> Result<Self,Self::Err> { fn from_str(s: &str) -> Result<Self,Self::Err> {