mirror of
https://github.com/clap-rs/clap
synced 2024-12-15 07:12:32 +00:00
fix(macros.rs): fix use statements for trait impls
This commit is contained in:
parent
e7f77353b9
commit
86e4075eb1
1 changed files with 5 additions and 5 deletions
|
@ -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> {
|
||||||
|
|
Loading…
Reference in a new issue