Skip to content

Commit

Permalink
Merge pull request #157 from AnderEnder/remove-deprecated-error-descr…
Browse files Browse the repository at this point in the history
…iption

Remove deprecated Error::description
  • Loading branch information
bluss committed Mar 15, 2020
2 parents c61da29 + 2755d4a commit 902114f
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 902114f

Please sign in to comment.