Skip to content

Commit

Permalink
remove deprecated Error::description
Browse files Browse the repository at this point in the history
  • Loading branch information
AnderEnder committed Jan 3, 2020
1 parent 4f0faaf commit 2755d4a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2755d4a

Please sign in to comment.