From 2755d4acb36c9b454c3efe81aa13ab4fc946ea2a Mon Sep 17 00:00:00 2001 From: Andrii Radyk Date: Sat, 4 Jan 2020 00:50:35 +0100 Subject: [PATCH] remove deprecated Error::description --- src/errors.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/errors.rs b/src/errors.rs index 5bea9806..380742a8 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -33,11 +33,7 @@ const CAPERROR: &'static str = "insufficient capacity"; #[cfg(feature="std")] /// Requires `features="std"`. -impl Error for CapacityError { - fn description(&self) -> &str { - CAPERROR - } -} +impl Error for CapacityError {} impl fmt::Display for CapacityError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {