remove deprecated Error::description
This commit is contained in:
+1
-5
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user