remove deprecated Error::description

This commit is contained in:
Andrii Radyk
2020-01-04 00:50:35 +01:00
parent 4f0faaf027
commit 2755d4acb3
+1 -5
View File
@@ -33,11 +33,7 @@ const CAPERROR: &'static str = "insufficient capacity";
#[cfg(feature="std")]
/// Requires `features="std"`.
impl<T: Any> Error for CapacityError<T> {
fn description(&self) -> &str {
CAPERROR
}
}
impl<T: Any> Error for CapacityError<T> {}
impl<T> fmt::Display for CapacityError<T> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {