diff options
Diffstat (limited to 'src/options/parser.rs')
-rw-r--r-- | src/options/parser.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/options/parser.rs b/src/options/parser.rs index 909538c..ef4072b 100644 --- a/src/options/parser.rs +++ b/src/options/parser.rs @@ -61,8 +61,8 @@ pub enum Flag { impl Flag { pub fn matches(&self, arg: &Arg) -> bool { match *self { - Flag::Short(short) => arg.short == Some(short), - Flag::Long(long) => arg.long == long, + Self::Short(short) => arg.short == Some(short), + Self::Long(long) => arg.long == long, } } } @@ -70,8 +70,8 @@ impl Flag { impl fmt::Display for Flag { fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> { match *self { - Flag::Short(short) => write!(f, "-{}", short as char), - Flag::Long(long) => write!(f, "--{}", long), + Self::Short(short) => write!(f, "-{}", short as char), + Self::Long(long) => write!(f, "--{}", long), } } } |