Skip to content

Commit 2755d4a

Browse files
committed
remove deprecated Error::description
1 parent 4f0faaf commit 2755d4a

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)