We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2ecc31 commit 8ad4143Copy full SHA for 8ad4143
src/lib.rs
@@ -713,17 +713,7 @@ pub enum Fail {
713
UnexpectedArgument(String),
714
}
715
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
-}
+impl Error for Fail {}
727
728
/// The result of parsing a command line with a set of options.
729
pub type Result = result::Result<Matches, Fail>;
0 commit comments