From 8ad414376c114af7db96918de3c163c2d55a973f Mon Sep 17 00:00:00 2001 From: Andrii Radyk Date: Sat, 4 Jan 2020 20:31:12 +0100 Subject: [PATCH] remove deprecated Error::description --- src/lib.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 2de07fa5..51ba7787 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -713,17 +713,7 @@ pub enum Fail { UnexpectedArgument(String), } -impl Error for Fail { - fn description(&self) -> &str { - match *self { - ArgumentMissing(_) => "missing argument", - UnrecognizedOption(_) => "unrecognized option", - OptionMissing(_) => "missing option", - OptionDuplicated(_) => "duplicated option", - UnexpectedArgument(_) => "unexpected argument", - } - } -} +impl Error for Fail {} /// The result of parsing a command line with a set of options. pub type Result = result::Result;