Skip to content

Commit 145f3ac

Browse files
committed
description function in error trait is deprecated
1 parent a5ed6aa commit 145f3ac

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/error/multiple_error_types/wrap_error.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,6 @@ impl fmt::Display for DoubleError {
2929
}
3030
3131
impl error::Error for DoubleError {
32-
fn description(&self) -> &str {
33-
match *self {
34-
DoubleError::EmptyVec => "empty vectors not allowed",
35-
// This already impls `Error`, so defer to its own implementation.
36-
DoubleError::Parse(ref e) => e.description(),
37-
}
38-
}
39-
4032
fn cause(&self) -> Option<&error::Error> {
4133
match *self {
4234
DoubleError::EmptyVec => None,

0 commit comments

Comments
 (0)