Skip to content

Commit 7692da7

Browse files
authored
Merge pull request #95 from AnderEnder/remove-deprecated-error-description
Remove deprecated Error::description
2 parents f2ecc31 + 8ad4143 commit 7692da7

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/lib.rs

+1-11
Original file line numberDiff line numberDiff line change
@@ -713,17 +713,7 @@ pub enum Fail {
713713
UnexpectedArgument(String),
714714
}
715715

716-
impl Error for Fail {
717-
fn description(&self) -> &str {
718-
match *self {
719-
ArgumentMissing(_) => "missing argument",
720-
UnrecognizedOption(_) => "unrecognized option",
721-
OptionMissing(_) => "missing option",
722-
OptionDuplicated(_) => "duplicated option",
723-
UnexpectedArgument(_) => "unexpected argument",
724-
}
725-
}
726-
}
716+
impl Error for Fail {}
727717

728718
/// The result of parsing a command line with a set of options.
729719
pub type Result = result::Result<Matches, Fail>;

0 commit comments

Comments
 (0)