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 {