Skip to content

Commit 902114f

Browse files
authored
Merge pull request #157 from AnderEnder/remove-deprecated-error-description
Remove deprecated Error::description
2 parents c61da29 + 2755d4a commit 902114f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/errors.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ const CAPERROR: &'static str = "insufficient capacity";
3333

3434
#[cfg(feature="std")]
3535
/// Requires `features="std"`.
36-
impl<T: Any> Error for CapacityError<T> {
37-
fn description(&self) -> &str {
38-
CAPERROR
39-
}
40-
}
36+
impl<T: Any> Error for CapacityError<T> {}
4137

4238
impl<T> fmt::Display for CapacityError<T> {
4339
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {

0 commit comments

Comments
 (0)