Merge pull request #157 from AnderEnder/remove-deprecated-error-description

Remove deprecated Error::description
This commit is contained in:
bluss
2020-03-15 21:27:36 +01:00
committed by GitHub
+1 -5
View File
@@ -33,11 +33,7 @@ const CAPERROR: &'static str = "insufficient capacity";
#[cfg(feature="std")] #[cfg(feature="std")]
/// Requires `features="std"`. /// Requires `features="std"`.
impl<T: Any> Error for CapacityError<T> { impl<T: Any> Error for CapacityError<T> {}
fn description(&self) -> &str {
CAPERROR
}
}
impl<T> fmt::Display for CapacityError<T> { impl<T> fmt::Display for CapacityError<T> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {